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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *