What is the for root method?
Answer / Rahul Rao
The 'forRoot' method in AngularJS is used to register a service or value at the root scope of the application, making it available throughout the entire application.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we share the data between controllers in angularjs?
What is the use of ngafterviewinit?
What is pre-linking function in angularjs?
What is web sockets?
Wht do we use directive?
How to build mobile apps using ionic 3 cli and angular 4?
What is components in angular?
Explain ngfor directive with an example?
What are the difference between @injectable() vs. @Inject() in angular 2?
When should you use an attribute versus an element?
What is property in angular?
What is difference between angular and angularjs?