The $controller service is used by AngularJS to create new controllers.
This provider allows controller registration via the register method.
Param | Type | Details |
---|---|---|
name | string | Controller name to check. |
Param | Type | Details |
---|---|---|
name | string Object | Controller name, or an object map of controllers where the keys are the names and the values are the constructors. |
constructor | function() Array | Controller constructor fn (optionally decorated with DI annotations in the array notation). |
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
https://code.angularjs.org/1.8.2/docs/api/ng/provider/$controllerProvider