mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Updated to improve IComponentOptions
This commit is contained in:
Vendored
+3
-3
@@ -1709,7 +1709,7 @@ declare namespace angular {
|
||||
* controller if passed as a string. Empty function by default.
|
||||
* Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection)
|
||||
*/
|
||||
controller?: string | Function | any[];
|
||||
controller?: string | Function | (string | Function)[];
|
||||
/**
|
||||
* An identifier name for a reference to the controller. If present, the controller will be published to scope under
|
||||
* the controllerAs name. If not present, this will default to be the same as the component name.
|
||||
@@ -1724,7 +1724,7 @@ declare namespace angular {
|
||||
* $attrs - Current attributes object for the element
|
||||
* Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection)
|
||||
*/
|
||||
template?: string | Function | any[];
|
||||
template?: string | Function | (string | Function)[];
|
||||
/**
|
||||
* path or function that returns a path to an html template that should be used as the contents of this component.
|
||||
* If templateUrl is a function, then it is injected with the following locals:
|
||||
@@ -1732,7 +1732,7 @@ declare namespace angular {
|
||||
* $attrs - Current attributes object for the element
|
||||
* Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection)
|
||||
*/
|
||||
templateUrl?: string | Function | any[];
|
||||
templateUrl?: string | Function | (string | Function)[];
|
||||
/**
|
||||
* Define DOM attribute binding to component properties. Component properties are always bound to the component
|
||||
* controller and not to the scope.
|
||||
|
||||
Reference in New Issue
Block a user