×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Fabio Clem
Added: May 25, 2017 1:12 PM
Modified: May 29, 2017 6:34 PM
Views: 2
Tags: no tags
Components do Vue
  1. Vue.component("componentname", {
  2.     props: {
  3.  
  4.     },
  5.     data: function () {
  6.         return data;
  7.     },
  8.     template: "<div>\n\
  9.                    \n\
  10.                </div>",
  11.     created: function () {
  12.  
  13.     },
  14.     methods: {
  15.  
  16.     }
  17. });