使用jQuery UI插件与角 [英] Using Jquery UI plugin with Angular
问题描述
我想用jQuery的UI插件布局在角度的应用程序。是否有一个角指令,已经做了这个,或者有异曲同工之妙?
I wanted to use the jquery's UI layout plugin in an angular application. Is there an angular directive that does this already, or serves the same purpose?
推荐答案
AngularJS
是这里健壮arhitecture要建,这就是为什么我们看到的条款,所以许多模块的指令和其他组件。把 JQuery的
它会像他们的核心设计要离开,你会自己结束了乱七八糟维持codeBase的。
AngularJS
is here to be built for robust arhitecture and that is why we see so many modules in terms of directives and other components. Putting JQuery
with it will be like going away from their core design and you will yourself end up in a mess maintaining the codebase.
jQuery是一个拐杖,如果你正在编写AngularJS应用程序。
如果你开始一个 AngularJS
应用程序,在需要的 NG-样板。然后看看 UI自举的指示的。他们是你能怎么办?jQuery的事与code的一小部分,并建立一个应用程序,更容易维护,这样更容易测试,一般更好的工作。一个活生生的例子。
If you’re starting an AngularJS
app, take a good look at ng-boilerplate. Then take a look at ui-bootstrap’s directives. They are a living example of how you can do "jQuery things" with a fraction of the code, and build an app that is easier to maintain, way more testable, and generally nicer to work with.
在这个东东看看
-
<一个href=\"http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background\">How我认为AngularJS如果我有一个jQuery的背景 - 一个优秀的堆栈溢出后,关于这个观点扩展了
How do I "think in AngularJS" if I have a jQuery background? - An excellent Stack Overflow post that expands on this viewpoint
这篇关于使用jQuery UI插件与角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!