Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //HTML - adicionar o v-model
- <div class="form-group" id="content">
- <label class="bmd-label-floating">Email address</label>
- <input type="email" class="form-control" v-model="vue_email">
- //aqui aparecerá em tempo real o que for digitado. Usando o Laravel é necessário adicionar o @
- @{{vue_email }}
- </div>
- //VUE
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
- <script>
- var form = new Vue({
- el: '#content',
- data: {
- vue_email: '',
- },
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment