Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created January 19, 2018 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/ed332145aa73bba1c833494c0f764f87 to your computer and use it in GitHub Desktop.
Save matthieu-D/ed332145aa73bba1c833494c0f764f87 to your computer and use it in GitHub Desktop.
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