return {
age : 18,
family : 'noroozi'
}
},
template : '<div><h1>hi : {{ family }}<br> your age is {{ age }}</h1></div><p>{{ user }}</p>'
});
new Vue({
el : '#app',
});
<body>
<div id="app">
<fa-header user="matin"></fa-header>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
<script type="text/javascript" src="./app.js"></script>
</body>
it cant know props ['user']
what is the problem?
nobody knows this? vue js
[Vue warn]: Property or method "userType" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> <Faheader> <Root> vue.js:634:17 VueJS 26 <anonymous> http://localhost:7080/vueTut/app.js:13
if you cant know, how we will?
Обсуждают сегодня