var Bar = Vue.extend({ props: ['my-props'], template: '<p>This is bar!</p>' });
router.map({ '/bar': { component: Bar } });
Vue.component('my-bar', Bar);
<my-bar my-props="hello!"></my-bar>
Social Media Digital Marketing & Communication Advisor. Community Manager
Follow the Vue JS Community to stay up to date with latest tutorials and find answers, support from other users. Its not same without you!
Write your answer...
I am learning Vue and facing a problem while using arrow function in computed property. My original code works fine (See snippet below). However, after I change methods in computed property, the c
Aditya Agrawal
General
Asked • Jun 13 2019
error: I have this code in main.js I know that the problem is in created() when I overwrite the list prop, but I am a newbie in Vue, so I totally don't know how to fix it. Anyone have an idea how
Prasad Patil
I'm creating a component with Vue.js. When I reference this in any of the the lifecycle hooks (created, mounted, updated, etc.) it evaluates to undefined: The same thing is also happening inside m
Asked • Jun 1 2019
Community
Get Involved
Stay Connected
Company