December 2014
Intermediate to advanced
272 pages
8h 17m
English
The AngularJS module configuration phase is executed when a module is being defined. During this phase, any providers are registered with the dependency injector. You should put only configuration and provider code inside the configuration block.
You implement the configuration block by calling the config() method on the instance of the Module object, using the following syntax:
config(function([injectable, . . .]))
A function with the injectable parameters is passed in. The injectable parameters are typically provider services functions such as $provide.
The following is an example of a basic configuration block:
var myModule = angular.module('myModule', ...
Read now
Unlock full access