From the course: SharePoint Framework for Developers: 5 SPFx and Angular

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create an Angular CLI project

Create an Angular CLI project

From the course: SharePoint Framework for Developers: 5 SPFx and Angular

Start my 1-month free trial

Create an Angular CLI project

- [Instructor] Let's see an example of Angular Elements in action. So I'm going to craft up a project in front of you, and we will use this project with Angular Elements. So I'm in this folder, I have Angular CLI installed, no GSMPM, everything updated, and I'm going to simply say ng new, and I'm going to call my project ngElementsVanilla. So the idea being that this is a very simple example of Angular Elements. And for the routing question, I'll just say no, because I want to keep things simple. Let's just go with CSS, that's fine. So the thing is, routing can work can work with Angular Elements, so that's really not an issue. But when you start making it work with say a SharePoint Framework, the problem there is that SharePoint itself wants to own the page URLs, and routing wants to own page URL's. So the two cannot conflict with each other. So in order for you to use routing with SharePoint Framework, you'd have to write a custom location strategy. So we'll not worry about that…

Contents