Understanding props in vue.js

前端 未结 3 441
梦毁少年i
梦毁少年i 2021-02-07 07:48

I\'m working through the guide for learning vue.js, got to the section on props, and ran into a question.

I understand that child components have isolated scops and we

3条回答
  •  我在风中等你
    2021-02-07 08:26

    You have to bind the value to the component prop like this:

    
    

    Jsfiddle https://jsfiddle.net/y8b6xr67/

    Answered here: Vue JS rc-1 Passing Data Through Props Not Working

提交回复
热议问题