We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this example the Props (x) and data variable (x) are two-way binding Also x1
(x) is working but (x1) is not , because of the number "1"
Try it in JsFiddle
<script type="text/x-template" id="my-component-template"> <input type="text" name="name" v-model="value" /> props : {{$data | json }} </script>
<div id="demo"> <input type="text" v-model="x" /> <my-component name="x" value="{{@ x}}"></my-component> <hr /> <input type="text" v-model="x1" /> <my-component name="x1" value="{{@ x1}}"></my-component> <hr /> {{ $data | json }} </div>
Vue.component('my-component', { template: '#my-component-template', props: ['name', 'value'], }); new Vue({ el: '#demo', data: { x: '', x1: '' } });
The text was updated successfully, but these errors were encountered:
8ad3e94
Thanks, fixed!
Sorry, something went wrong.
No branches or pull requests
Is this a bug ?
In this example the Props (x) and data variable (x) are two-way binding
Also x1
(x) is working but (x1) is not , because of the number "1"
Try it in JsFiddle
HTML
JS
The text was updated successfully, but these errors were encountered: