mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-29 05:15:38 +08:00
committed by
Caitlin Potter
parent
091eb83301
commit
a8d42800e7
@@ -283,8 +283,7 @@ someModule.controller('MyController', ['$scope', 'dep1', 'dep2', function($scope
|
||||
This avoids the creation of global functions for controllers and also protects against minification.
|
||||
|
||||
Controllers are special in that, unlike services, there can be many instances of them in the
|
||||
application. For example, there would be one instance of a for every instance of the `ng-controller`
|
||||
directive in the template.
|
||||
application. For example, there would be one instance for every `ng-controller` directive in the template.
|
||||
|
||||
Moreover, additional dependencies are made available to Controllers:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user