From 1c4a34873c9e70cce86edd0e61c559e43dfa5f75 Mon Sep 17 00:00:00 2001 From: Boris Prpic Date: Sat, 13 Feb 2016 21:54:57 +0100 Subject: [PATCH] Component controller can be array angular.module(.....).component("componentName", { controller: ["$rootScope",function($rootScope) { }], template: .... } --- angularjs/angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index fda3f9fa0..656e62865 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -1685,7 +1685,7 @@ declare module angular { * Controller constructor function that should be associated with newly created scope or the name of a registered * controller if passed as a string. Empty function by default. */ - controller?: string | Function; + controller?: any; /** * 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.