https://github.com/waldekmastykarz/spfx-angular-templates
Sample illustrating the different techniques for loading templates in SharePoint Framework Client-Side Web Parts built using Angular
https://github.com/waldekmastykarz/spfx-angular-templates
angular office-365 sharepoint sharepoint-framework sharepoint-online
Last synced: 17 days ago
JSON representation
Sample illustrating the different techniques for loading templates in SharePoint Framework Client-Side Web Parts built using Angular
- Host: GitHub
- URL: https://github.com/waldekmastykarz/spfx-angular-templates
- Owner: waldekmastykarz
- Created: 2016-09-18T08:02:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-19T05:05:50.000Z (over 9 years ago)
- Last Synced: 2025-10-06T01:21:15.443Z (8 months ago)
- Topics: angular, office-365, sharepoint, sharepoint-framework, sharepoint-online
- Language: TypeScript
- Size: 211 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loading Angular templates in SharePoint Framework Client-Side Web Part
This sample illustrates the different techniques for loading templates in SharePoint Framework Client-Side Web Parts built using Angular.

## Minimal Path to Awesome
- clone this repo
- `$ npm i`
- `$ gulp serve`
## Features
This sample illustrates the following concepts on the SharePoint Framework:
- defining HTML template for the Angular application in a Client-Side Web Part
- in-line, mixed with the Web Part's code
- externally in a static HTML file using global CSS classes
- externally in a TypeScript file using unique CSS classes
- externally in a static HTML file using unique CSS classes mapped via Angular view model
- externally loaded through Angular
- passing the unique CSS class names into Angular template
- extending the SharePoint Framework project build process using custom build tasks
- loading Angular from CDN