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

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

问题描述

我真的很喜欢学习使用 AngularJS.现在我正在寻找可以与它一起使用的组件.我一直在研究 Angular-UI 组件,但我想知道是否可以在 ExtJS 中使用漂亮的、超强的组件.有人对此有经验吗?任何提示或技巧或 Angular 指令库?

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?

推荐答案

我工作的公司也在采取类似的举措.我们目前严重依赖旧版本 (3.x) 的 ExtJS,升级到当前 (5.0) 版本的工作量至少等于迁移到 angular 所需的工作量.

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.

回答这个问题(尽我有限的知识):

它们可以同时存在于同一个 JS 应用程序中.

They can exist together in the same JS application.

你能在 Angular 中使用 ExtJs 的 UI 元素吗?

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

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

这是一个明智的想法吗?

可能不会.

我为什么要考虑这样做?

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

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

我需要以某种 Ext 没有提供的特殊方式进行序列化或反序列化

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

我需要做一些特别的事情,比如发布/订阅(使用 Ext 仍然完全可能)

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

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

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.

这几乎就像将 Ext 与 Node 进行比较(我知道这很愚蠢).

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

如果您的项目需要一些您认为在 Ext 中无法实现的特殊功能,那么您可能和我一样并且对它的经验有限.如果你对 Ext 有很多经验,并想尝试我们正在尝试的东西,我说去吧.Ext 的唯一缺点是交付的构建包的大小.另一个小框架不会对此有所帮助,但也不会造成更多痛苦.

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.

最后,对我来说,我只是喜欢 JS 并扩展我对现在和未来事物运作方式的了解.

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

对于上面询问 Ext 缺乏吸引力的帖子:答案很简单……它不是免费的,因此对于我们中的许多不编写符合许可证的商业软件的人来说,这不是一个选择.

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天全站免登陆