December 2017
Beginner
372 pages
10h 32m
English
We can very easily add the reference to our login module in the app module in the imports array. This is required for Angular to have a reference to the login module to load at the start of the application. The following is the code for app.module, to which we have added a reference to the login module:
import {LoginModule} from './login/login.module';....@NgModule({ declarations: [ AppComponent, HomepageComponent, CustomSortPipe ], imports: [ BrowserModule, AppRoutingModule, LoginModule ], providers: [], bootstrap: [AppComponent]})
As you can see, we have added the LoginModule into the import array.
Read now
Unlock full access