Last active
August 29, 2015 14:17
-
-
Save nicolae-olariu/1921fa98b5cda70e6126 to your computer and use it in GitHub Desktop.
Dynamic dropdown rendered using AngularJS and select2 jquery plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select | |
id="sampleId" | |
class="select2" | |
data-allow-clear="true" | |
data-placeholder="placeholderHere" | |
ng-model="sampleModel" | |
ng-options="entity.modelHere as entity.modelHere for entity in entities" | |
ng-selected="sampleModel == entity.modelHere"> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment