Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created March 16, 2017 05:02
Show Gist options
  • Save justinyoo/6afc687c7dc5f304411a78d7c7c5b6e1 to your computer and use it in GitHub Desktop.
Save justinyoo/6afc687c7dc5f304411a78d7c7c5b6e1 to your computer and use it in GitHub Desktop.
Getting Geolocation on Mobile Devices using Vue.js + TypeScript + ASP.NET Core
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<div>
<button type="button" v-on:click="getLocation">Get Location</button>
<ul>
<li>Latitude: {{ latitude }}</li>
<li>Longitude: {{ longitude }}</li>
<li>Altitude: {{ altitude }}</li>
</ul>
</div>
<h2>Essential Links</h2>
...
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment