delucaspinto

[VUE - LARAVEL] TIMEREAL INPUT VALUES

Jun 30th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //HTML - adicionar o v-model
  2. <div class="form-group" id="content">
  3. <label class="bmd-label-floating">Email address</label>
  4. <input type="email" class="form-control" v-model="vue_email">
  5.  
  6. //aqui aparecerá em tempo real o que for digitado. Usando o Laravel é necessário adicionar o @
  7. @{{vue_email }}
  8. </div>
  9.  
  10.  
  11. //VUE
  12. <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
  13. <script>
  14. var form = new Vue({
  15. el: '#content',
  16. data: {
  17. vue_email: '',
  18. },
  19. });
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment