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