I have fetched the following json into my navigation for loop.
This works, but when i paste {{item.navitems.navitem.name}} into to="" i am getting this error.
How can i achieve this working?
Error:
Loop:
<ul class="nav navbar-nav">
<li v-for="item in items">
<router-link to="" tag="li" active-class="active"><a>{{item.navitems.navitem.name}}</a></router-link>
</li>
</ul>
Json:
[
{
"navitems": {
"navitem": {
"name": "Home",
"url": ""
}
}
},
{
"navitems": {
"navitem": {
"name": "About",
"url": "/about"
}
}
}
]
