1125 Views
A lot of Angular modules need to be imported with a static forRoot() function, via this function it allows us to configure the module. An example, perhaps the most known, is the Angular Router Module that needs a collection of routes, another example is the NgRx Store that needs the root reducers of the application.
0 comments