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']);
This module may get data from another module and that other module can be specified here :
var module = angular.module('module', ['otherDataModule']);
No comments:
Post a Comment