A service that can be used to create instances of component controllers.
$scope
object
in the locals
param.
$componentController(componentName, locals, [bindings], [ident]);
Param | Type | Details |
---|---|---|
componentName | string |
the name of the component whose controller we want to instantiate |
locals | Object |
Injection locals for Controller. |
bindings
(optional)
|
Object |
Properties to add to the controller before invoking the constructor. This is used
to simulate the |
ident
(optional)
|
string |
Override the property name to use when attaching the controller to the scope. |
Object | Instance of requested controller. |