K
K
Kazah902018-08-19 13:57:47
Vue.js
Kazah90, 2018-08-19 13:57:47

Why is the component not showing up?

Good afternoon, I made a component on Laravel, and it does not appear on my site.

<template>
<div>

                    <div class="blog" v-for="prod in myData">
                   
                    <li  >{{ prod.title}}</li>
                   </div>



</div>
</template>
<script>
export default {

    props: ['myData']
    }
</script>
<style>
    .blog {
      width: 200px;
      height: 200px;
      border: 1px solid black;
      color:red;
    }
  </style>

I climbed the docks and did not find what could be the error. You can poke me and tell me where the error is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-08-19
@Kazah90

I would assume that the component is actually rendered, but the problem is with the data. How do you pass data to a component? I’ll make one more guess, it looks like this for you: Well, as the documentation suggests :

HTML attribute names are case-insensitive, so browsers interpret any uppercase characters as lowercase. This means that when using templates in the DOM, camelCase-style input parameters must use their kebab-case-style equivalents.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question