SharePoint Online Single Page App With Angular2 and Webpack
This is a fork from https://github.com/AshokRajaT/Angular2-SharePoint-SPA but with problems fixed and dependencies upgraded :-)
This example is also explain in detail a blog series:
- http://www.ashokraja.me/post/SharePoint-Online-Single-Page-App-With-Angular2-and-Webpack-SP-Ng2-SPA-Part-1.aspx
- http://www.ashokraja.me/post/SharePoint-list-data-CRUD-operation-with-PnP-Core-Js-and-Angular2-SP-Ng2-SPA-Part-2.aspx
- http://www.ashokraja.me/post/Angular2-routing-inside-SitePages-Document-Library-in-SharePoint-Online-SP-Ng2-SPA-Part-3.aspx
- http://www.ashokraja.me/post/Webpack-configuration-settings-for-development-and-production-build-of-SharePoint-Single-Page-App-with-Angular-2-SP-Ng2-SPA-Part-4.aspx
- http://www.ashokraja.me/post/Source-code-and-deployment-steps-for-Angular2-Single-Page-App-with-SP-PnP-Js-for-SharePoint-SP-Ng2-SPA-Part-5.aspx
This angular web application is supposed to play with a Sharepoint List named Employee
and it should contains the columns listed in app.entities.ts.
You should first have node and yarn installed on your machine.
- Modify your site url in app.settings.ts
- In Employee.aspx, adapt
<base ref="..." />
to your Sharepoint relative location where you will deploy this application. - Build the application by running the command
yarn install && yarn build
- Copy the content of
dist
folder to your Sharepoint site location. - Navigate to your application: https://<sharepoint_site>/<site_location>/Employee.aspx