Obtenha adereços de métodos em Vue
{{ this.calcPercentage(card.w_lessons.length,card.w_lessons_count) }}
-
{{ Math.floor((card.w_lessons.length/card.w_lessons_count)*100) + "%" }}
methods: {
calcPercentage(lesson, all){
return Math.floor((lesson/all)*100) + "%";
}
},
props: {
car: Object,
},
Matt Miller