/pnpjs-webpart

Sample spfx webpart with a singleton service using service locator pattern with async / await

Primary LanguageTypeScript

pnpjs-webpart

Summary

Sample Spfx with @pnp/sp library using a service via service locator pattern and async await

Used SharePoint Framework Version

1.1.4

Applies to

Prerequisites

Follow the spfx on-premise instructions and use npm ci when modifying the package-lock.json file

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • npm install
    • gulp serve