0đź‘Ť
“notifications” is not a valid object. First validate the object, then iterate like below:
<div v-for="notification in Object.keys(notifications)">
{{ notifications[notification] }}
</div>
One more thing, your “data” in “notifications” object is a string. So you can’t access “user_id” key by dot notation from this.
check this fiddle for more clarification.
- [Vuejs]-Cannot pass parent component's object as prop in Vue after Laravel Mix update
- [Vuejs]-How to remove fade-out transition in tooltip component from element-ui?
Source:stackexchange.com