What is the forroot method in angular4?



What is the forroot method in angular4?..

Answer / Mamta Sonkar

In Angular4, the `forRoot()` method is used to configure a module at the root level of an application. This allows you to share configuration between modules.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What are the differences between service and factory methods?

1 Answers  


How to enable caching in angular 1.x?

1 Answers  


What is @injectable()? Why use?

1 Answers  


How are the services injected to your application?

1 Answers  


What is difference between javascript and angular?

1 Answers  


What Is The Difference Between One-Way Binding And Two-Way Binding?

1 Answers  


How to achive in angular ?

1 Answers  


What is resolve in angularjs?

1 Answers  


Which components can be injected as a dependency in angular js?

1 Answers  


How do you stop ng serve?

1 Answers  


What is @injectable providedin root?

1 Answers  


What are different ways of bootstrapping AngularJS?

1 Answers  


Categories