In AngularJS, which method is used for configuring a module?
- .config()
- .configure()
- .initialize()
- .setup()
In AngularJS, the .config() method is used for configuring a module. The .config() method allows developers to configure the module before it is run. It is commonly used for setting up providers, decorators, and other configuration settings. This method plays a crucial role in the AngularJS application lifecycle and is essential for customizing the behavior of modules.
Loading...
Related Quiz
- Describe a scenario where AngularJSâs MVC model provides an advantage over traditional server-side MVC frameworks in terms of responsiveness and user experience.
- Describe a scenario in which improper use of scope in AngularJS could lead to memory leaks.
- __________ in AngularJS is used to specify the other modules a module depends on.
- What is the primary purpose of a controller in AngularJS?
- The __________ is a core feature of AngularJS that underpins its two-way data binding mechanism.