是否可以在AngularJS中使用ExtJS组件? [英] Is it possible to use ExtJS components in AngularJS?

查看:140
本文介绍了是否可以在AngularJS中使用ExtJS组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常喜欢学习使用AngularJS。现在我正在寻找可以使用的组件。我一直在看Angular-UI组件,但我想知道是否可以在ExtJS中使用漂亮的增压组件。有没有人有这方面的经验?任何提示或提示或Angular指令库?

解决方案

我所在的公司正在采取类似的举措。我们目前依赖于ExtJS的旧版本(3.x),升级到当前(5.0)版本的功能至少等于转向角度所需的努力。



为了回答这个问题(尽可能的有限的知识):



他们可以一起存在于同一个JS



您可以使用角色使用ExtJ的UI元素吗?



您可以通过Ext中的HTML模板来控制标记。



这是一个明智的想法吗?



可能不是。



为什么要考虑这样做?


  1. 我需要绝对控制标记,不关心可能的页面加载问题


  2. 我需要我们需要做一些特别的事情,比如pub / sub(仍然完全可以与...进行串行化或解串行化)分机)


在我们的例子中,这是一些模态的概念证明。如果我有偏见,我偏向ExtJs的方向(这是一个很大的声明,给出了我的背景)。我对ExtJS的曝光度越多,我个人更喜欢它。过去,我已经使用了几个框架,如Ember,Backbone,KnockoutJs和AngularJs,它们是达到成熟度的一个很好的工具,使他们做出了很好的选择。也就是说,他们不遵循ExtJs的相同开发模式/模式,我不认为直接比较对任何一方都是公平的。



几乎就像比较Ext到Node(傻,我知道)。



如果你的项目需要一些你不相信Ext可能的特殊功能,你可能像我一样,经验有限。如果你有很多Ext的经验,而且想尝试我们正在尝试的话,我会说出去。 Ext的单一垮台是传递的内置包的大小。另一个小框架是不会帮助的,但也不会造成更多的痛苦。



最后,对于我来说,我只是喜欢JS,并扩大了我对现在和未来工作的了解。



上面的帖子询问Ext的缺乏牵引力:答案很简单,这不是免费的,因此,我们许多不是在编写适合于许可证。


I'm really enjoying learning to use AngularJS. Now I'm looking for components I can use with it. I've been looking at Angular-UI components but I'd like to know if it's possible to use the nice, supercharged components in ExtJS. Does anyone have experience with this? Any hints or tips or Angular directive libraries?

解决方案

The company I work for is making a similar move. We currently rely heavily on an older version (3.x) of ExtJS, and the effort to upgrade to the current (5.0) version is at least equal to the effort required to move to angular.

To answer the question (to the best of my limited knowledge):

They can exist together in the same JS application.

Can you use UI elements of ExtJs with Angular?

You can put angular in control of markup via HTML templates in Ext.

Is this a wise idea?

Probably not.

Why would I consider doing this?

  1. I need absolute control over the markup and don't care about possible page load issues

  2. I need to serialize or de-serialize in some special way that Ext doesn't innately provide

  3. I need to do something special like pub/sub (still totally possible with Ext)

In our case, it is a proof of concept for a few modals. If I am biased, I am biased in the direction of ExtJs (which is a huge statement given my background). The more exposure I have to ExtJS, the more I personally like it. I've used several frameworks in the past like Ember, Backbone, KnockoutJs and AngularJs and they are excellent tools that are reaching a level of maturity that makes them excellent choices. That said, they don't follow the same development model/pattern that ExtJs does, and I don't think a direct compare is fair to either side.

It would be almost like comparing Ext to Node (silly, I know).

If your project requires some special functionality that you don't believe is possible in Ext, you are probably like me and have limited experience with it. If you have a lot of experience with Ext, and want to try what we are trying, I say go for it. The single downfall of Ext is the size of the built package that is delivered. Another small framework isn't going to help that, but it also isn't going to cause more pain.

In the end, for me, I just love JS and expanding my knowledge of how things work now and in the future.

For the post above asking about the lack of traction for Ext: the answer is simple... it's not free, and thus not an option for many of us who aren't writing commercial software that fits well with the license.

这篇关于是否可以在AngularJS中使用ExtJS组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆