Skip to content

Instantly share code, notes, and snippets.

@igeligel
Last active December 20, 2018 18:36
Show Gist options
  • Save igeligel/faa5d36c4bcf4b7224e706a4ec593cb4 to your computer and use it in GitHub Desktop.
Save igeligel/faa5d36c4bcf4b7224e706a4ec593cb4 to your computer and use it in GitHub Desktop.
<template>
<div class="auth-page">
<!-- ... -->
<form v-on:submit.prevent="onSubmit(email, password)">
<fieldset class="form-group">
<input
class="form-control form-control-lg"
type="text"
v-model="email"
placeholder="Email"
/>
</fieldset>
<fieldset class="form-group">
<input
class="form-control form-control-lg"
type="password"
v-model="password"
placeholder="Password"
/>
</fieldset>
<button class="btn btn-lg btn-primary pull-xs-right">Sign in</button>
</form>
<!-- ... -->
</div>
</template>
<script>
import { mapState } from "vuex";
import { LOGIN } from "@/store/actions.type";
// ...
export default {
name: "RwvLogin",
data() {
return {
// ...
};
},
computed: {
// ...
},
methods: {
onSubmit(email, password) {
// ...
}
}
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment