Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select class="selectpicker" bootstrap-selectpicker data-ng-model="modelValue" multiple="" data-actions-box="true">
- <option>Mustard</option>
- <option>Ketchup</option>
- <option>Relish</option>
- </select>
- app.directive('bootstrapSelectpicker'), function($compile, $parse){
- var bootDirective = {
- restrict : 'A',
- link: function(scope, element, attr){
- $('.selectpicker').selectpicker();
- }
- };
- return bootDirective;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement