Angular / Angular basics
What is forRoot and forChild method in angular?
The forRoot is a static method and it helps to configure the modules. For example, RouterModule.forRoot.
The RouterModule also has forChild method, static method used to configure the routes of lazy-loaded modules. The forRoot and forChild are the traditional names for methods that configure services in root.
More Related questions...