手机版
你好,游客 登录 注册
背景:
阅读新闻

AngularJS 1.5.0-rc.2 发布下载,HTML 的 Web 框架

[日期:2016-02-01] 来源:oschina.net  作者:Linux [字体:大 中 小]

AngularJS 1.5.0-rc.2 发布下载,更新如下:

Deprecation Warning

  • The ngTouch module's ngClick directive has been deprecated and disabled by default. See the breaking changes section for more information

Bug Fixes

Features

  • $compile:

    • allow required controllers to be bound to the directive controller (56c3666f,#6040, #5893, #13763)

    • allow directive definition property require to be an object (cd21216f,#8401, #13763)

    • call $ngOnInit on directive controllers after all sibling controllers have been constructed (3ffdf380,#13763)

  • $locale: include original locale ID in $locale(63492a02,#13390)

  • $resource: add support for timeout in cancellable actions (d641901b,#13824)

Performance Improvements

  • $compile: avoid needless overhead when wrapping text nodes (92e4801d)

  • ngAnimate: speed up areAnimationsAllowed check (683bd92f)

Breaking Changes

The ngClick override directive from the ngTouch module is deprecated and disabled by default. This means that on touch-based devices, users might now experience a 300ms delay before a click event is fired.

If you rely on this directive, you can still enable it with the $touchProvider.ngClickOverrideEnabled()method:

angular.module('myApp').config(function($touchProvider) {  $touchProvider.ngClickOverrideEnabled(true);
});

Going forward, we recommend using FastClick or perhaps one of the Angular 3rd party touch-related modules that provide similar functionality.

Also note that modern browsers already remove the 300ms delay under some circumstances:

  • Chrome and Firefox for Android remove the 300ms delay when the well-known <meta name="viewport" content="width=device-width"> is set

  • Internet Explorer removes the delay when  touch-action css property is set to none or manipulation

  • Since iOs 8, Safari removes the delay on so-called "slow taps"

See this article by Telerik for more info on the topic.

Note that this change does not affect the ngSwipe directive.

详细改进请看发行说明。

下载页面:v1.5.0-rc.2

一些AngularJS相关文章链接:

AngularJS权威教程 清晰PDF版  http://www.linuxidc.com/Linux/2015-01/111429.htm

希望你喜欢,并分享我的工作~带你走近AngularJS系列:

  1. 带你走近AngularJS - 基本功能介绍 http://www.linuxidc.com/Linux/2014-05/102140.htm
  2. 带你走近AngularJS - 体验指令实例 http://www.linuxidc.com/Linux/2014-05/102141.htm
  3. 带你走近AngularJS - 创建自定义指令 http://www.linuxidc.com/Linux/2014-05/102142.htm

如何在 AngularJS 中对控制器进行单元测试 http://www.linuxidc.com/Linux/2013-12/94166.htm

在 AngularJS 应用中通过 JSON 文件来设置状态 http://www.linuxidc.com/Linux/2014-07/104083.htm

AngularJS 之 Factory vs Service vs Provider http://www.linuxidc.com/Linux/2014-05/101475.htm

AngularJS —— 使用 ngResource、RESTful APIs 和 Spring MVC 框架提交数据 http://www.linuxidc.com/Linux/2014-07/104402.htm

AngularJS 的详细介绍:请点这里
AngularJS 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-02/128049.htm

linux
相关资讯       AngularJS 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款