I am having an issue with a simple component in my code. Here is the code snippet:
<my-comp :item="item"></my-comp>
// in script
components: {
MyComp
},
data : {
item: 'hello'
}
After I assign a value to the data item, it only shows the initial value and does not update when changed. I found this example online and tried implementing it but it's not working as expected. Can someone please assist me with this?