December 2017
Beginner
372 pages
10h 32m
English
Once we have our login module, if we generate a component or a service or a pipe that we want to be associated with this module, we can easily do that by providing the module flag.
So, if we want to create an appLogin component which should be registered with the login module, we can use the following command:
ng generate component appLogin --module login --dry-run
This will generate four files associated with appLogin as shown in the following screenshot:

The files are the appLogin component and its template, style, and test files. Also, we will see that the login.module file is updated ...
Read now
Unlock full access