Posts

Showing posts with the label SPFx

How to use AngularJS in SharePoint Framework (SPFx)

In this post, I will show you how to use AngularJS in SPFx. I have divided the steps for better understanding. Here are the steps: 1.         Create SPFx Project with No JavaScript Web Framework 2.         Add Dev Dependencies 3.         Remove some Dependencies 4.         Run “npm install” 5.         Modify “config.json” 6.         Create folder called “app” under “/src/webparts/ angularjsWebpart/” and Create following files in “app” folder a.         Greetings.component.html b.         Greeting.module.css c.         Greetings.component.ts d.         Greetings.service.ts (If required) e.         app.module.ts 7.         Modify “<<your_webpart>>webpart.ts” file & add some code. 8.         Finally run your solution Create SPFx Project with No JavaScript Web Framework Remember you have to create project with  No javascript web framework  option. Create a new project directory in your favorite location. md angularjs-webpart Go to the project directory. cd angularjs-webpart