Angular 4 CLI
Angular CLI makes it simple to begin with any Angular task. Angular CLI accompanies directions that help us make and begin our task extremely quick. Release us now through the directions accessible to make a project and services, change the port etc.
To work with Angular CLI, we need it introduced on our framework. Give us a chance to utilize the accompanying command for the equivalent −
To create a new project, we can run the following command in the command line and the project will be created.
ng new PROJECT-NAME cd PROJECT-NAME ng serve //
The following table lists down a few important commands required while working with Angular 4 projects.
|Component||ng g component new-component|
|Directive||ng g directive new-directive|
|Pipe||ng g pipe new-pipe|
|Service||ng g service new-service|
|Module||ng g module my-module|
Whenever a new module, a component, or a service is created, the reference of the same is updated in the parent module app.module.ts.