I want to change my class for an element, but I donβt know how to handle it using Ionic 2. I tried this way, but this is wrong:
<span [ngClass]="{(user.id == this.session.userDefaultId) : 'class1 class2', (user.id != this.session.userDefaultId) : 'class3 class4'}"> ... </span>
Can someone explain to me how to do this, please? :)
source share