Explain .config() and .run() methods in angularjs?
Answer / Atul Singh
.config() is a function in AngularJS used for configuration tasks that should be performed during the bootstrap process before any services are available. The $.provider chain is resolved during the configuration phase. On the other hand, .run() is used to execute expressions synchronously after all modules have been bootstrapped and all services have been instantiated.
| Is This Answer Correct ? | 0 Yes | 0 No |
List some inbuilt pipes available in angular
What is routing concepts in angular?
What does a Subscribe method do in Angular 4?
What is shadow dom and virtual dom?
What is an angular 2 component?
Explain the difference between angular service and factory? Explain
What are angular js expressions?
Please explain system.config.ts file used in angular?
Explain the concept of scope hierarchy. In what ways can you use a directive?
What is aot and jit in angular?
What is routerstate in routers?
What is observable and promise?