(5/7) Office 365: Single Page App Using Angular 6.0 & PNP Js

Опубликовано: 16 Апрель 2026
на канале: Basant
1,945
15

In this video I explained how we can setup the pnp-js-core library and perform the simple operation in office 365.

Download the code from Github : https://github.com/BasantPandey/Offic...

I used the following steps

1. I used the NG CLI to create the service called user service and created method to performed the get web information using pnp-js-core library.
2. Also changed the base path of the index.html file. The location of the base path same as the location of the document library and append the location of the folder.
example {{SiteURL}}/sites/CDN/CDN/Office365 the base path would be "/sites/CDN/CDN/Office365/"
3. Deploy the solution in the team site and one of the team site using angular CLI. ng build --prod. Once it done upload all the files in to the document library.

Git hub Code
https://github.com/SharePoint/PnP-JS-...

Developer Guide
https://github.com/SharePoint/PnP-JS-...

RXjs
https://rxjs-dev.firebaseapp.com/