Talk not much, directly on the dry.
You definitely need the dropdown plugin. Must be introduced is the attention sequence
Select2.css
Select2-bootstrap.css
Select2.min.js
Angular.min.js
Angular-select2.js
OK, then just write a piece of code on the OK, as follows
<input select2 select2-model= "entity.brandids" config= "brandlist" multiple placeholder= "select brand (optional)" class= " Form-control ">
Explain what it means,
Select2-model means that you will automatically place the selected value on this variable.
Config means that the data source of the drop-down box must conform to the format:
$scope. Config3 = { data: [{ID:1,text: ' Bug '},{id:2,text: ' Duplicate '},{id:3,text: ' Invalid '},{id:4,text : ' Wontfix '}] // Other configuration slightly, you can go to see the AJAX configuration in the built-in configuration };
Multiple means you can choose more than one.
OK, okay.
ANGULARJS implementation drop-down box multiple selection