我正在尝试将 google-maps 添加到我的模块中,但我遇到了这个问题 - 错误:[$injector:unpr] 最后是这样的 -
angular.module("app", ["google-maps"])
angular.module("app.controllers", ["ngCookies"]).controller("AppCtrl", ["$scope", "$location", "$cookies",
function($scope, $location, $cookies) {
return $scope.isSpecificPage = function() {
}, $scope.main = {
}
}
}]).controller("DashboardCtrl", ["$scope", "$cookies", "$location", "google-maps",
function($scope, $cookies, $location) {
return $scope.map = {
center: {
latitude: 45,
longitude: -73
},
zoom: 8
};
}])
我按照这个顺序放置文件 - https://angular-ui.github.io/angular-google-maps/#!/use但我遇到了问题。有人可以对此作出回应。