AngularJS 1.3或AngularJS的1.2.x [英] AngularJS 1.3 or AngularJS 1.2.x

查看:160
本文介绍了AngularJS 1.3或AngularJS的1.2.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是对比度使用1.3版本AngularJS框架的1.2.x版本分支的优势是什么?

What are the advantages of using a 1.3 version of AngularJS framework in contrast to the 1.2.x branch?

我读过,在1.3.x的版本的Internet Explorer 8的支持将被丢弃。所以我想知道的1.3版本的功能/性能是否如此诱人,一个可能接受IE ​​8的缺乏支持仅仅是新的功能将不会在IE 8的工作,或现有的(1.2。 X版本)的人吗?是否有能够使用的AngularJS 1.3 IE 8的任何修补程序?

I've read that in the 1.3.x releases the support for Internet Explorer 8 will be dropped. So I'd like to know whether the features/capabilities of 1.3 version are so tempting that one might accept the lack of support to IE 8. Are only the new features going not to work in IE 8, or the existing (in 1.2.x releases) ones too? Are there any patches that enable the use of AngularJS 1.3 in IE 8?

编辑:
IE 8是不是我唯一关注的问题。我想知道1.3版本具有1.2还没有任何为什么它更加强大。

IE 8 is not my only concern. I would like to know what 1.3 version has that 1.2 hasn't any why is it more powerful.

推荐答案

后修改1.3正式发布:

下面是公告的1.3版本。结果
<一href=\"http://angularjs.blogspot.com/2014/10/angularjs-130-superluminal-nudge.html\">http://angularjs.blogspot.com/2014/10/angularjs-130-superluminal-nudge.html

它强调的新功能,如
一次性绑定语法,ngAria,ngMessages,ngModelOptions,严格DI和性能改进。

Here is the announcement for the 1.3 release.
http://angularjs.blogspot.com/2014/10/angularjs-130-superluminal-nudge.html
It highlights new features such as One-time bindings syntax, ngAria, ngMessages, ngModelOptions, strict DI and performance improvements.

还有一个迁移文档,以帮助您的升级结果
<一href=\"https://docs.angularjs.org/guide/migration#migrating-from-1-2-to-1-3\">https://docs.angularjs.org/guide/migration#migrating-from-1-2-to-1-3

There is also a migration doc to help with your upgrade
https://docs.angularjs.org/guide/migration#migrating-from-1-2-to-1-3

如果你的问题现在是是否值得升级到1.3考虑计划在2.0?的巨大变化,我会说,答案当然是肯定的。

If your question is now "is it worth upgrading to 1.3 considering the massive changes planned for 2.0?", I'd say the answer is definitely yes.

原稿答案:

既然你不是问如何升级,我假设你刚刚开始开发。如果这是真的,有一个很好的机会,1.3(或更高版本)将是你去住了时间的发行版。所以不要基于它的测试版正在犹豫。您code将远远不太稳定比1.3分支:)

Since you're not asking about upgrading, I'm assuming you're just starting development. If this is true, there's a really good chance that 1.3 (or higher) will be the release version by the time you go live. So don't hesitate based on it being in beta. Your code will be far less stable than the 1.3 branch :)

此外,他们不是故意破坏的事情在IE8,他们只是做了测试,事情还在它的工作。如果你有一个真正强大的业务需求,支持IE8,然后用1.2坚持。但即便如此,水疗中心真的很闹心在IE8考虑到通常需要,使他们可以使用的所有UI空想。

Also, they aren't purposefully breaking things in IE8, they are just done testing that things still work in it. If you have a really strong business requirement for supporting IE8, then stick with 1.2. But even then, SPAs just really suck in IE8 considering all the UI fanciness that is usually required to make them usable.

使用1.3虽然最大的原因是为了避免现在写了一堆code的就是肯定依赖于那些已经知道是一个重大更改(的事情,因为他们已经改变)。

Biggest reason to use 1.3 though is to avoid writing a bunch of code now that is for sure dependent on things that are already known to be a breaking change (because they have already changed).

要回答你的编辑,有没有什么显着的或显著新...

To answer your edit, there's nothing really notable or significantly new...

<一个href=\"http://blog.angularjs.org/2013/12/angularjs-13-new-release-approaches.html\">http://blog.angularjs.org/2013/12/angularjs-13-new-release-approaches.html

作为次要目标,此版本将覆盖功能,以提高性能,并且需要小的重大更改和删除的是API的小API修复previously德precated。

As a secondary goal, this release will cover features to improve performance, and small API fixes that require small breaking changes and removal of apis that were previously deprecated.

编辑14年8月4日:
看起来他们已经决定的东西很显著添加到1.3 ...

Edit 8/4/14: It looks like they have decided to add something very significant to 1.3...

<一个href=\"https://docs.google.com/document/d/150lerb1LmNLuau_a_EznPV1I1UHMTbEl61t4hZ7ZpS0/edit\">https://docs.google.com/document/d/150lerb1LmNLuau_a_EznPV1I1UHMTbEl61t4hZ7ZpS0/edit
   2014年7月28日结果
  决定我们会回港的AngularJS 2.0路由器
  1.3在支持材料设计的组件。

https://docs.google.com/document/d/150lerb1LmNLuau_a_EznPV1I1UHMTbEl61t4hZ7ZpS0/edit July 28, 2014
Decided that we’ll back-port the AngularJS 2.0 Router to 1.3 in support of Material Design components.

有关计划2.0(或1.3现在看来)新的路由器的好处和设计这里列出:<一href=\"https://docs.google.com/document/d/1I3UC0RrgCh9CKrLxeE4sxwmNSBl3oSXQGt9g3KZnTJI/edit\">https://docs.google.com/document/d/1I3UC0RrgCh9CKrLxeE4sxwmNSBl3oSXQGt9g3KZnTJI/edit (其中他们也提到向后移植到1.x中)

The benefits and design for the new router planned for 2.0 (and for 1.3 it now seems) is outlined here: https://docs.google.com/document/d/1I3UC0RrgCh9CKrLxeE4sxwmNSBl3oSXQGt9g3KZnTJI/edit (in which they also have mentioned backporting to 1.x)

这篇关于AngularJS 1.3或AngularJS的1.2.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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