API Flashcards
1
Q
angular.module
A
Define an angular module.
- moduleName must be the name in ng-app.
- dependency: angular modules this module is dependent on
var myApp = angular.module(‘moduleName’, [‘dependency1’])
angular.module
Define an angular module.
var myApp = angular.module(‘moduleName’, [‘dependency1’])