Created
February 23, 2019 10:07
-
-
Save gaupoit/10c78278a212330adae3bd27ee22df77 to your computer and use it in GitHub Desktop.
App vue file
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
<template> | |
<form> | |
OAuth Token: <br/> | |
<input type="text" name="oauth-token" v-model="oauthToken"/> | |
<br/><br/> | |
<input type="submit" value="Save changes" v-on:click="save"/> | |
</form> | |
</template> | |
<script> | |
export default { | |
name: 'app', | |
data() { | |
return { | |
oauthToken: '', | |
} | |
}, | |
methods: { | |
save: function (evt) { | |
evt.preventDefault(); | |
// Call settings API | |
console.log('OAuth token', this.oauthToken); | |
} | |
} | |
} | |
</script> | |
<style scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment