The $controller service is used by Angular to create new controllers.
This provider allows controller registration via the register method.
register(name, constructor);
| Param | Type | Details |
|---|---|---|
| name | stringObject |
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). |
allowGlobals();
If called, allows $controller to find controller constructors on window