How does forRoot method helpful to avoid duplicate router instances?
RouterModule module didn’t have forRoot() static method then each feature module would instantiate a new Router instance, which leads to broken application due to duplicate instances. After using forRoot() method, the root application module imports
RouterModule.forRoot(...) and gets a Router, and all feature modules import
RouterModule.forChild(...) which does not instantiate another Router.
June 04, 2022
What is Angular Framework?
November 04, 2022Angular
What is a Angular module?
November 03, 2022Angular
What are the steps to use animation module?
October 31, 2022Angular