-1
내 컨트롤러에서 호출 할 때 어떤 이유로 $ $ location 객체에 경로 함수가 없습니다.
누군가 아이디어?
E : 여기 컨트롤러
erpmApp.controller('dashboardCtrl', ['$scope', '$http', '$parse','$swipe', '$location', '$rootScope', 'Page', 'Data', 'Config', function ($scope, $rootScope, $http, $parse, $swipe, $location, Page, Data, Config) {
Config.setHeadbarStatus(true);
Page.setTitle('ERP-Mobile');
$scope.dashboarddata = null;
$scope.redirect = function(url) {
console.log($location);
};
$scope.loadDashboard = function() {
if($scope.dashboarddata == null) {
Data.getDashboardMenuData().then(function(response){
$scope.dashboarddata = response;
});
}
};
}]);
'$rootScope'
당신은 확실한가요? 이것이 $ 범위가 아닌가? 컨트롤러 정의에 코드를 게시 할 수 있습니까? –그래, 그게 분명 범위 야. – brentmckendrick
컨트롤러 정의를 추가 했어. – Johnny000