Chrome Extension

Define a new component in Vue.js

Vue.component('component_name', {
    props: ['prop_name'],
    template: '<div class="root"></div>',
    data: function() {
        return {}
    methods: {
    created: function() {
Code faster with devsheet chrome extension and increase productivity as a programmer
search code from your favorite search engine instantly.
Install Now

The code can be used to define a new component in Vue.js. You can use this component by creating tag named as component name as below.


Was this helpful?
Open Code Manager We are hiring