http://plnkr.co/edit/1ATuPILnevk6gCvYRvee?p=preview
angular.module('emfModule')
.directive('selectpicker', function ($timeout) {
return {
restrict: 'C',
link: function (scope, element, attrs) {
var $el = $(element);
$timeout(function () {
$el.selectpicker({
style: 'btn-default',
size: false
});
});
}
};
});
Hi I am trying to load data via ajax into a dropdown in an angular app. The data is coming through and i am able to populate the control but when I try to use the bootstrap-select plugin, it fails. I tried to wrap it up using an angular directive but didnt help. The Plunk above describes my use case. Can someone let me know where I am going wrong. Thank You