TypeScript不理解" $ location。$$路径"?

时间:2017-02-07 16:55:05

标签: angularjs typescript

有什么理由说明为什么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")){

        }
    }

enter image description here

0 个答案:

没有答案