December 2017
Beginner
372 pages
10h 32m
English
Once we have generated our application, the next step is to add features to our application. The feature can be a component or service or pipe, and Angular CLI provides us with the command, to generate these easily. As with the generate command for the application, these commands also have options for us to configure how we want to generate the files.
The Angular CLI provides one main command for generating the components, pipes, services, and classes as follows:
ng generate <<featureName>> <<fileName>> <<options>>
As we can see, the command is ng generate followed by the feature name, which can be a component, class, service, or pipe, followed by the name of the feature that we want, and then, at the ...
Read now
Unlock full access