Bootstrap-multiselect and Angularjs conflict

Source: Internet
Author: User


Bootstrap-multiselect conflict with Angularjs, unable to select, load delay issue:
Defer loading of the MultiSelect () method, code:
1$scope. Mulselect =function(){2$timeout (function () {3$ (' #camera-select '). MultiSelect ({4Nonselectedtext: ' All ',//button displays a value when there is no value5Includeselectalloption:true,6Selectalltext: ' Select All ',//Select checkbox name for all7Buttonwidth: ' 133px ',//button Width8maxheight:2009                 });Ten}, 200); One}

In addition, because of the conflicting problems caused by getting the sequential loading order between data and loading plug-in styles, you can load the data first and then call the plug-in loading method:

1 $http. Post ($scope. url+ ' Camera/getcameralist ', $scope. Searchcamera). Success (function(data) {2             $scope . Cameralist = data.data.list; 3             $scope. Mulselect (); 4         });

Bootstrap-multiselect and Angularjs conflict

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.