How to create a new Component in Angular2
Como crear un nuevo Component en Angular2
Hello everyone, In this post you are going to find how you can create a new Component using Angular CLI, and also add it in an html file. If you don't know how to create an Angular 2 Project, please see this post to complete it first http://angular2university.blogspot.pe/2017/06/steps-to-build-your-first-angular-2.html Angular CLI provide us a set of command to create some things of Angular 2, in this case we are going to use the first one. Scaffold Usage Component ng g component my-new-component Directive ng g directive my-new-directive Pipe ng g pipe my-new-pipe Service ng g service my-new-service Class ng g class my-new-class Guard ng g guard my-new-guard Interface ng g interface my-new-interface Enum ng g enum my-new-enum Module ng g module my-module Execute this Command to create a 'customers' component. ng g component customers When the command is finished you should see that a new folder was created as you can see bel