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.

Convert an Angular component to an Angular element

Convert an Angular component to an Angular element

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

Start my 1-month free trial

Convert an Angular component to an Angular element

- [Narrator] So now that I have an Angular CLI based project ready to go, let's turn this into an Angular Elements project. And because I'm using Angular CLI, this is very, very simple. Now one thing I also did, and this is optional, I also went ahead and did a git commit because Angular CLI will instant-cheat a git wrapper for me. The reason I did this is because I'm going to use Angular CLI and I'm going to add support for Angular Elements here and I'm going to run a bunch of commands and Angular CLI does a bunch of work for me. So this git commit here, this green thing you see here, that'll help me keep a track of what files are changing in the process of converting this to use Angular Elements. Converting this to Angular Elements is very simple. You simply say ng add @angular/elements and hit enter. And this will go online and with the help of Angular schematics it might even make some changes to our project. And at the end of this, you have support for Angular Elements in your…

Contents