有什么理由说明为什么Typescript不理解 $ location。$$路径 ??
这是我的控制器的一个片段:
static $inject: string[] = ["DataService", "$location", "$route", "$routeParams", "$log"];
constructor(
private dataService: DataService,
private $location: ng.ILocationService,
private $route: ng.route.IRouteService,
private $routeParams: IRouteParams,
private $log: ng.ILogService) {
if ($location.$$path.includes("Reports")){
}
}