How to dinnamically set the size of a column in the responsive grid

With the new resonsive grid I can do:
<ion-col col-sm-4>

but I need to do something like:
<ion-col [col-sm]="test? 4: 6">

How could I achieve this?

<ion-col [attr.col-sm-4]="test ? true : null" [attr.col-sm-6]="test ? null : true">
2 Likes