@@ -1707,8 +1707,9 @@ declare namespace angular {
1707
1707
/**
1708
1708
* Controller constructor function that should be associated with newly created scope or the name of a registered
1709
1709
* controller if passed as a string. Empty function by default.
1710
+ * Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection)
1710
1711
*/
1711
- controller ?: string | Function ;
1712
+ controller ?: string | Function | ( string | Function ) [ ] ;
1712
1713
/**
1713
1714
* An identifier name for a reference to the controller. If present, the controller will be published to scope under
1714
1715
* the controllerAs name. If not present, this will default to be the same as the component name.
@@ -1721,15 +1722,17 @@ declare namespace angular {
1721
1722
* If template is a function, then it is injected with the following locals:
1722
1723
* $element - Current element
1723
1724
* $attrs - Current attributes object for the element
1725
+ * Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection)
1724
1726
*/
1725
- template ?: string | Function ;
1727
+ template ?: string | Function | ( string | Function ) [ ] ;
1726
1728
/**
1727
1729
* path or function that returns a path to an html template that should be used as the contents of this component.
1728
1730
* If templateUrl is a function, then it is injected with the following locals:
1729
1731
* $element - Current element
1730
1732
* $attrs - Current attributes object for the element
1733
+ * Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection)
1731
1734
*/
1732
- templateUrl ?: string | Function ;
1735
+ templateUrl ?: string | Function | ( string | Function ) [ ] ;
1733
1736
/**
1734
1737
* Define DOM attribute binding to component properties. Component properties are always bound to the component
1735
1738
* controller and not to the scope.
0 commit comments