From the course: SharePoint Framework for Developers: 5 SPFx and Angular
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Demo: Use Angular elements in SPFx
From the course: SharePoint Framework for Developers: 5 SPFx and Angular
Demo: Use Angular elements in SPFx
- [Instructor] It is time to see our hard work in action. Now that I have this ngElementsVanilla project, that we're going to serve a local host, it'll be referenced under spfxvanilla as a file coming from external CDN, remember that when you deploy this, you will have to put it on a real CDN. And the spfxvanilla, we've made the necessary code changes here, so we should be able to see properties.description update there. Let's see this running in action. So what I'm going to do, is that I'm going to go into the ngElementsVanilla folder first, then I'm going to say npm start. So the reason I'm doing this is because that local host, 8000/ship.js starts to work. Why do I want that to work? Because in my (unclear), that is where I'm referencing this file from. Okay, let's wait for this to load. Again, when you deploy this, you need to put this on a real CDN, or you need to publish it as a nmp module so that way it gets bundled with your project. Spfx gives you a lot of flexibility around…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.