I want to know if is it possible to use an array.lenght value in my SCSS code:
export default {
return {
data: ['One', 'Two', 'Three']
}
In this example my this.data.lenght will be equal to 3.
I want to assing to a variable in SCSS ($lenght) the lenght of my data array:
// SCSS variable
$lenght: this.data.lenght;
And use it later in a for loop :
@for $n from 1 through $lenght {
//Some stuff
}