在 Angular-strap 的模态中使用 jQuery 插件时遇到问题
Meeting problems while using jQuery plugin in the modal of Angular-strap
我尝试使用 mention.js in my project, but it doesn't work well in the modal of Angular-strap. Here is the plunker
myApp.controller("CreateModalCtrl", function($scope) {
$("#members").mention({users: usersInfo});
});
在主页中,mention.js 效果很好:
但是到了模态页,插件就不行了。
此外,plnker无法显示模态页面,您可以将plnker中的代码复制到您的本地项目中。谢谢!
myApp.controller("CreateModalCtrl", function($scope) {
//$("#members").mention({users: usersInfo});
setTimeout(function(){
$("#members").mention({users: usersInfo});
$scope.$apply();}, 0);});
然后就可以了...
我尝试使用 mention.js in my project, but it doesn't work well in the modal of Angular-strap. Here is the plunker
myApp.controller("CreateModalCtrl", function($scope) {
$("#members").mention({users: usersInfo});
});
在主页中,mention.js 效果很好:
但是到了模态页,插件就不行了。
此外,plnker无法显示模态页面,您可以将plnker中的代码复制到您的本地项目中。谢谢!
myApp.controller("CreateModalCtrl", function($scope) {
//$("#members").mention({users: usersInfo});
setTimeout(function(){
$("#members").mention({users: usersInfo});
$scope.$apply();}, 0);});
然后就可以了...