javascript – uiGmapGoogleMapApi.then not running on Android
javascript – uiGmapGoogleMapApi.then not running on Android
It may or may not be due to the minification. When minifying, you have to use array injection syntax:
.controller(WeatherController, [
$scope,
uiGmapGoogleMapApi,
function ($scope, uiGmapGoogleMapApi) {
console.log(WeatherController);
uiGmapGoogleMapApi.then(function(maps) {
console.log(maps API loaded; creating map);
$scope.map = { center: { latitude: 45, longitude: -73 }, zoom: 8 };
});
}
]);
You are already using this syntax when declaring your main module starter.
javascript – uiGmapGoogleMapApi.then not running on Android
Related posts
- qt – How to close a window in QML/Javascript code (with C++ code involved)?
- html – Control horizontal scroll with javascript
- javascript – Not able to fetch data from database by using ajax in java
- html – ¿Como hago una condicion con OnKeyPress en JavaScript? en español
- jquery – How to create typeahead feature in JavaScript
- Javascript submit textbox on ENTER
- How to get time in milliseconds since the unix epoch in Javascript?