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’])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly