I'm trying to make a <select> behave with single or multiple selection depending on a condition. So far I have tried:
<select ng-model="data.model" ng-attr-multiple="{{myCondition ? '' : undefined}}"> (here's a plnkr I have been testing with https://plnkr.co/edit/ACKBMZSJc2MVSJaDBGMY?p=preview)
But it won't work. Even leaving ng-attr-multiple alone won't work. What am I missing here?