mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Changed "Loading" references to "$ionicLoading" in order to allow the
loading service to work correctly and changed the styles of the "centerOnMe" button so that it was visible.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<div id="map"></div>
|
||||
</content>
|
||||
<div class="bar bar-footer bar-dark">
|
||||
<button ng-click="centerOnMe()" class="button button-icon"><i class="icon-ios7-navigate"></i></button>
|
||||
<a ng-click="centerOnMe()" class="button button-icon icon ion-navigate">Find Me</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<script>
|
||||
angular.module('ionic.example', ['ionic.ui.content', 'ionic.ui.list', 'ionic.service.loading'])
|
||||
|
||||
.controller('MapCtrl', function($scope, Loading) {
|
||||
.controller('MapCtrl', function($scope, $ionicLoading) {
|
||||
function initialize() {
|
||||
var mapOptions = {
|
||||
center: new google.maps.LatLng(43.07493,-89.381388),
|
||||
@@ -71,7 +71,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.loading = Loading.show({
|
||||
$scope.loading = $ionicLoading.show({
|
||||
content: 'Getting current location...',
|
||||
showBackdrop: false
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user