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.

Run the Angular CLI project

Run the Angular CLI project

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

Start my 1-month free trial

Run the Angular CLI project

- [Instructor] So we just wrote up a simple Angular project using Angular CLI, and here, we've got this elements-button and elements-button.component, and we're referencing that in app-elements-button, in the index.html. Here, let me go ahead and on terminal, I'll just say, N-P-M start, which runs N-G serve, behind the scenes. Okay, so, this will go ahead and build my project. Let's give it a moment, click on Allow access. You may or may not see this on a machine, it'll ask you to do this only once. And once this compilation is done, you should open your browser on localhost:4200, so let me go ahead and do that, and my Elements Button shows up, and it is working as expected, so my Elements Button is ready to go. Obviously, clicking on this isn't going to do anything because clicking on this is only emitting the event. We're not listening to the event yet. You can choose to extend this application further and use standard Angular concepts to listen to this click event as well. I'm not…

Contents