skip to Main Content

v-for cannot read prop data-Twitter bootstrap

<template> <span> <i class="fa fa-star text-warning fa-2x" v-for="r in rating" :key="r"></i> <h1>{{rating}}</h1> </span> </template> <script> export default { name: "ratings", props: ["rating"], } </script> <style> </style> This is one of my child component where 4 is passing as prop and…

VIEW QUESTION
Back To Top
Search