[Vuejs]-Vue.js make use of global list

0👍

You should only bind plain text or variable to Component props. Mustache expression not works there.

ie.

<myComponent a="plain text" :b="obj"></myComponent>
new Vue({
  data: {obj: {foo: 'bar'}}
  components: {myComponent: myComponent}
})

Props

Leave a comment