AngularJS - Using ternary operators and filters within a binding
You need to wrap them in parenthesis ()
to take precedency
{{ (myAccount.Balance > 0 ? myAccount.Balance : myAccount.Balance + 'minus') | filter | filter 2 }}
You need to wrap them in parenthesis ()
to take precedency
{{ (myAccount.Balance > 0 ? myAccount.Balance : myAccount.Balance + 'minus') | filter | filter 2 }}