V
V
Vladislava2022-01-18 12:51:35
JavaScript
Vladislava, 2022-01-18 12:51:35

Why is vue not displaying name?

<div id="app">
    <div class="bg-slate-800 flex justify-between">
    <h1 class="pb-3 pt-3 pl-3 text-slate-100">Navbar</h1>
    <div v-for="nav in navs" class="flex pr-3 text-slate-100 pb-3 pt-3">
        <h2 class="pr-2">{{ nav.name }}</h2>
        
    </div>
    </div>
    </div>


new Vue({
    el: '#app',
    data(){
        return{
            navs: [
                {name: 'Store'},
                {name: 'Orders'}

            ]
        }
    }
})

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aetae, 2022-01-18
@Aetae

Displays:
Read the errors in the console and think.

V
Vladislava, 2022-01-20
@vladis005

The bottom line was that I did not add delimeters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question