December 2017
Beginner
372 pages
10h 32m
English
The most common thing that is required in an Angular application is components. The following is the command for generating a component:
ng generate component homepage --dry-run
The output of the command is shown here:

As we can see, Angular CLI would create four files under the src\app\homepage folder: one for the component, another for the style, then one for the template, and lastly one for the test. Angular CLI would also create a homepage folder which would contain these files.
Also, we see that Angular CLI would update an existing file, app.module.ts. This is the main module file which has reference to all the ...
Read now
Unlock full access