mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
angular.IRoute.controller can be defined as array
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/// <reference path="angular.d.ts" />
|
||||
/// <reference path="angular-route.d.ts" />
|
||||
|
||||
/**
|
||||
@@ -32,6 +33,14 @@ $routeProvider
|
||||
return "I return a string"
|
||||
}
|
||||
})
|
||||
.when('/projects/:projectId/dashboard5', {
|
||||
controller: ['$log',function($log:ng.ILogService){
|
||||
$log.info('I am array')
|
||||
}],
|
||||
templateUrl: function ($routeParams?: ng.route.IRouteParamsService) {
|
||||
return "I return a string"
|
||||
}
|
||||
})
|
||||
.otherwise({ redirectTo: '/' })
|
||||
.otherwise({ redirectTo: ($routeParams?: ng.route.IRouteParamsService, $locationPath?: string, $locationSearch?: any) => "" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user