i would like to know if it is possible to use variable, declared in my ts file for styling my ionic components.
I know i can do it by declaring the variables as globals, but as they are not fixed, i have to declare then in my ts file.
Example: i have this code, witch is working:
<ion-col style=" height: 170px; background: rgb(226, 45, 144)" > {{room.name}}</ion-col>
But i want something like:
<ion-col style=" height: room.height; background: room.bckg_color" > {{room.name}}</ion-col>
Thanks for your help.