You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pass a prop value into any component: <hello my-prop="foo"></hello>
What is Expected?
myProp becomes a prop of Hello.vue and the value of my-prop is "foo".
What is actually happening?
The value of my-prop is undefined
Notes
props are correctly mixed in if registered directly in the component using mixins : [ { props : [ 'myProp' ] } ]
default values are passed correctly but will never change
clone the provided git repository and run npm run dev to see the bug
repo contains two components "Hello.vue" and "HelloWithLocalMixin.vue" that demonstrate the apparently buggy behavior
also see App.vue and main.js
The text was updated successfully, but these errors were encountered:
thenickname
changed the title
Props are not corrently mixed in when registered globally
Props are not correctly mixed in when registered globally
Oct 16, 2016
thenickname
changed the title
Props are not correctly mixed in when registered globally
Mixins: props are not correctly mixed in when registered globally
Oct 16, 2016
Vue.js version
2.0.2
Reproduction Link
https://github.com/thenickname/vue-global-mixin-bug
Steps to reproduce
Register a mixin with props globally:
Pass a prop value into any component:
<hello my-prop="foo"></hello>
What is Expected?
myProp becomes a prop of Hello.vue and the value of my-prop is "foo".
What is actually happening?
The value of my-prop is undefined
Notes
mixins : [ { props : [ 'myProp' ] } ]
npm run dev
to see the bugThe text was updated successfully, but these errors were encountered: