AChevyc / spfx-angular-templates

Sample illustrating the different techniques for loading templates in SharePoint Framework Client-Side Web Parts built using Angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Web Parts illustrating the different techniques for loading HTML template in Angular displayed in SharePoint Workbench

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

About

Sample illustrating the different techniques for loading templates in SharePoint Framework Client-Side Web Parts built using Angular


Languages

Language:TypeScript 57.2%Language:JavaScript 19.2%Language:HTML 12.2%Language:CSS 11.3%