I've been attempting to accomplish a straightforward task, but for some reason, it's not working and I can't figure out why.
Within the parent component, App.vue, I have the following:
data() {
return {
servers: [
{
id: 1,
status: offline
},
{
id: 2,
status: offline
},
{
id: 3,
status: offline
},
{
id: 4,
status: offline
},
{
id: 5,
status: offline
}
]
};
}
I am then passing this data down to Servers.vue using
<servers :servers="servers"></servers>
.
In Servers.vue, I have a simple rendering logic like so:
<ul class="list-group">
<li class="list-group-item" v-for="server in servers">Server</li>
</ul>
However, despite no errors being thrown, nothing is displaying on the screen.
Yes, I have included props: ["servers"],
.
Any suggestions on what could be going wrong?
I've spent quite a bit of time trying to troubleshoot this with no luck...
edit: fixed a typo in my code, still facing the same issue
edit 2: here is a link to all of the code https://github.com/thenathurat/exercise-7