Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
var app =angular.module('app',[]);
app.directive('mymultiselect',function()
{
return{
restrict:'A',
require :'ngmodel',
link:function(scope,element,attrs)
{
element.multiselect({})

}
}

})

HTML:
<select mymultiselect ng-model="Selectedvalue" ng-options="opt.value asopt.text for opt in options" multiple="multiple">
<option value="">All</option>
</select>


As above mentioned am invoking the bootstrap multiselect in angular by creating directive.After the page loading it didnt showing any options after i select on "All option" then options are visibiling
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900