热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

AngularJS1.3.0-RC.0发布

AngularJS,AngularJS1.3.0-RC.0发布

9月13日#成都#源创会,Swift、Docker、云计算、大数据!

AngularJS 1.3.0-RC.0 发布,代号:sonic-boltification,更新内容如下:

Bug 修复

  • $animate:

  • $browser: detect changes to the browser url that happened in sync (3be00df4,#6976)

  • $compile: use the correct namespace for transcluded svg elements (cb73a37c,#8808, #8816)

  • $location: always resolve relative links in html5mode to url (22948807,#8492, #8172)

  • $parse: properly handle dots at the end of identifiers (8ac90357,#4613, #4912, #8559)

  • Angular: remove duplicate nodeName_ references (a4520a74)

  • currencyFilter: pass through null and undefined values (c2aaddbe,#8605)

  • docs: don't throw exception on the 404 page (550ba01b,#8518)

  • input:

    • validate minlength/maxlength for non-string values (77ce5b89,#7967, #8811)

    • allow to use seconds in input[time] and input[datetime-local](5f90340a)

    • use year 1970 instead of 1900 for input[time](29f0b568)

  • ngBindHtml: throw error if interpolation is used in expression (cd21602d,#8824)

  • ngEventDirs: execute blur and focus expression using scope.$evalAsync(719c747c,#4979, #5945, #8803, #6910, #5402)

  • ngModel:

    • always format the viewValue as a string for text, url and email types (1eda1836)

    • allow non-assignable binding when getterSetter is used (ab878a6c,#8704)

    • treat undefined parse responses as parse errors (db044c40)

  • ngRepeat: improve errors for duplicate items (0604bb7b)

  • ngSwitch: avoid removing DOM nodes twice within watch operation (c9b0bfec,#8662)

  • numberFilter: pass through null and undefined values (2ae10f67,#8605, #8842)

新特性

  • core:

    • add angular.reloadWithDebugInfo() (41c1b88)

  • $animate:

    • use promises instead of callbacks for animations (bf0f5502)

    • coalesce concurrent class-based animations within a digest loop (2f4437b3)

  • $compile:

  • $compile/ngBind: allow disabling binding info (3660fd09)

  • $http: implement mechanism for coalescing calls to $apply in $http (ea6fc6e6,#8736, #7634, #5297)

  • $rootScope: implement $applyAsync to support combining calls to $apply into a single digest. (e94d454b)

  • $templateRequest: introduce the $templateRequest service (a70e2833)

  • filter: allow to define the timezone for formatting dates (4739b1d9)

  • filterFilter: pass index to function predicate (46343c60,#654)

  • input: allow to define the timezone for parsing dates (cc6fc199,#8447)

  • minErr: allow specifying ErrorConstructor in minErr constructor (a6bd4bc8)

  • ngModel: provide validation API functions for sync and async validations (2ae4f40b)

  • ngRoute: alias string as redirectTo property in .otherwise() (3b5d75c0,#7794)

  • testability: add $$testability service (85880a64)

性能提升

  • $compile:

    • add debug classes in compile phase (e0489abd)

    • only iterate over elements with link functions (fdf9989f,#8741)

  • nodeName_: simplify the code and reduce the number of DOM calls (5a1a0c96)

  • select: execute render after $digest cycle (6f7018d5,#8825)

Breaking Changes



推荐阅读
author-avatar
一个简单的程序员
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有