Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created January 19, 2018 19:19
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/2d19c5a3d78e234ad8e52649c3ab69f7 to your computer and use it in GitHub Desktop.
Save matthieu-D/2d19c5a3d78e234ad8e52649c3ab69f7 to your computer and use it in GitHub Desktop.
webpackJsonp([0],{
/***/ 17:
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncatched exception popping up in devtools
return Promise.resolve().then(function() {
throw new Error("Cannot find module '" + req + "'.");
});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = 17;
/***/ }),
/***/ 19:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ionic_native_geolocation__ = __webpack_require__(20);
var geolocation = new __WEBPACK_IMPORTED_MODULE_0__ionic_native_geolocation__["a" /* Geolocation */]();
Vue.config.ignoredElements = ['ion-card', 'ion-card-content'];
var app = new Vue({
el: '#app',
data: {
loadingPosition: false,
geolocation: {}
},
methods: {
getPosition: function () {
var _this = this;
this.loadingPosition = true;
geolocation.getCurrentPosition().then(function (_a) {
var coords = _a.coords;
_this.loadingPosition = false;
_this.geolocation = coords;
});
}
}
});
//# sourceMappingURL=main.js.map
/***/ })
},[19]);
//# sourceMappingURL=main.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment