You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most cases, what you want is a computed binding:
<span>{{userType(user.type, defaultType)}}</span>
Where userType is a function like:
userType: function(type, default) {
return type || default;
}
Note that in 0.9, computed bindings don't accept literal arguments at this point (that is, I can't use {{userType(user.type, "End User")}}. However I believe that's already checked in to master and should be in 1.0.
! || &&
Or is there an alternative way?
The text was updated successfully, but these errors were encountered: