1. Ternary operator: As suggested by @Kirk in the comments, the cleanest way of doing this would be to use a ternary operator as follows: · 2. ng-switch ...
確定! 回上一頁