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:
Jesse Riggins
2014-01-18 06:17:11 -06:00
parent 736673b9d3
commit fd448249b2

View File

@@ -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
});