I'm working on a component in VueJS which will present a bar chart. For that i need to calculate a number and that's why it's computed.
in my sass code i have a varaible - $totalRows:
that i want to initialize with the computed property value:
sass:
<style lang="scss" scoped>
//$totalRows: $someNum;
</style>
computed property:
computed: {
someNum(){
return 10 //for example purposes
}
}
any idea how can i init the $totalRows
to be equal to the value returned from someNum