I'm considering Angular UI Bootstrap for use in a new project. There are also many standard (non-Angular) Bootstrap plugins that I'd like to consider using.
我正在考虑在一个新项目中使用角UI引导。我还想考虑使用许多标准(非角)引导插件。
Will "vanilla" Bootstrap plugins work "out of the box" with Angular-UI Bootstrap? Or, do Angular and jQuery conflict enough to make this a suboptimal combination?
“香草”引导插件与Angular-UI引导是否可以“开箱即用”?或者,角度和jQuery之间的冲突是否足以使它成为次优组合?
3 个解决方案
#1
1
This would work, but will be very taskly.. Why not use the Angular Bootstrap UI Directives instead?? You will be facing Async issues dealing with $scope.$evalAsync
这是可行的,但会非常成功。为什么不使用角引导的UI指令呢?您将面临处理$scope的异步问题
https://angular-ui.github.io/bootstrap/ ..
https://angular-ui.github。io /引导/ . .
And from expierence.. I have faced a lot of issues when jQuery and AngularJS Get combined. I wont reccomend with working on both at the same project.. I would just use the directives..
从expierence . .当jQuery和AngularJS合并时,我遇到了很多问题。我不会在同一个项目中同时做这两件事。我会用指示。
#2
1
They will generally work, but using the angular way to do things that were previously done well in jQuery is the way to go. You will avoid a lot of issues having angular pick up changes and having to deal with $scope.$apply
它们通常都是有用的,但是使用角度的方法来做以前在jQuery中做得很好的事情是可行的。您将避免许多有角度拾取更改和必须处理$scope的问题。$apply
#3
0
There basically have no conflict about jQuery and Angular but it's not a good style to mix with those two
关于jQuery和角化,基本上没有冲突,但与这两者混合不是一个好的风格
#1
1
This would work, but will be very taskly.. Why not use the Angular Bootstrap UI Directives instead?? You will be facing Async issues dealing with $scope.$evalAsync
这是可行的,但会非常成功。为什么不使用角引导的UI指令呢?您将面临处理$scope的异步问题
https://angular-ui.github.io/bootstrap/ ..
https://angular-ui.github。io /引导/ . .
And from expierence.. I have faced a lot of issues when jQuery and AngularJS Get combined. I wont reccomend with working on both at the same project.. I would just use the directives..
从expierence . .当jQuery和AngularJS合并时,我遇到了很多问题。我不会在同一个项目中同时做这两件事。我会用指示。
#2
1
They will generally work, but using the angular way to do things that were previously done well in jQuery is the way to go. You will avoid a lot of issues having angular pick up changes and having to deal with $scope.$apply
它们通常都是有用的,但是使用角度的方法来做以前在jQuery中做得很好的事情是可行的。您将避免许多有角度拾取更改和必须处理$scope的问题。$apply
#3
0
There basically have no conflict about jQuery and Angular but it's not a good style to mix with those two
关于jQuery和角化,基本上没有冲突,但与这两者混合不是一个好的风格