Thursday, June 4, 2015

angular.module('module', []); Whats the [] stand for ?

The [] (empty array parameter)  is for Dependency injection.
This module may get data from another module and that other module can be specified here :

var module = angular.module('module', ['otherDataModule']);