EVOLUTION-MANAGER
Edit File: selmulti.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/docs/content/error/$compile/selmulti.ngdoc?message=docs(error%2Fselmulti)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <h1>Error: error:selmulti <div><span class='hint'>Binding to Multiple Attribute</span></div> </h1> <div> <pre class="minerr-errmsg" error-display="Binding to the 'multiple' attribute is not supported. Element: {0}">Binding to the 'multiple' attribute is not supported. Element: {0}</pre> </div> <h2>Description</h2> <div class="description"> <p>Binding to the <code>multiple</code> attribute of <code>select</code> element is not supported since switching between multiple and single mode changes the <a href="api/ng/directive/ngModel"><code>ngModel</code></a> object type from instance to array of instances which breaks the model semantics.</p> <p>If you need to use different types of <code>select</code> elements in your template based on some variable, please use <a href="api/ng/directive/ngIf">ngIf</a> or <a href="api/ng/directive/ngSwitch">ngSwitch</a> directives to select one of them to be used at runtime.</p> <p>Example with invalid usage:</p> <pre><code><select ng-model="some.model" multiple="{{mode}}"></select> </code></pre> <p>Example that uses ngIf to pick one of the <code>select</code> elements based on a variable:</p> <pre><code><select ng-if="mode == 'multiple'" ng-model="some.model" multiple></select> <select ng-if="mode != 'multiple'" ng-model="some.model"></select> </code></pre> </div>