ui-select with single select (limit attribute is not working)
<p>Here is my code. I used angular UI-select. It is working great. But now, the requirement changed for the dropdown to be selected only once. I used limit attribute, but its not working.</p>

<pre><code>&lt;span id="oCountriesSpan" ng-class="{'has-error': noCountriesSelected()}"&gt;
                            &lt;ui-select multiple limit="1" ng-model="countryModel.selectedCountries" ng-disabled="isReadOnly" theme="bootstrap"&gt;
                                &lt;ui-select-match placeholder="Select ..." allow-clear="true"&gt;{{$item.name}}
                                &lt;/ui-select-match&gt;
                                &lt;ui-select-choices repeat="country.id as country in countryCodes | filter:$select.search"&gt;
                                    {{ country.name }}
                                &lt;/ui-select-choices&gt;
                            &lt;/ui-select&gt;
                        &lt;/span&gt;
</code></pre>