Created
January 19, 2018 21:08
-
-
Save matthieu-D/ed332145aa73bba1c833494c0f764f87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.config.ignoredElements = ['ion-card', 'ion-card-content']; | |
var app = new Vue({ | |
el: '#app', | |
data: { | |
loadingPosition: false, | |
geolocation: {} | |
}, | |
methods: { | |
getPosition: function() { | |
this.loadingPosition = true; | |
geolocation.getCurrentPosition().then(({ coords })=> { | |
this.loadingPosition = false; | |
this.geolocation = coords; | |
}) | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment