发布于 2014-08-31 00:53:55 | 372 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的AngularJS教程,程序狗速度看过来!

AngularJS 前端JS框架

AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。


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

AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。

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 <base> 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

 



历史版本 :
Angular 6.0.0-beta.1 和 5.2.2 发布,Web 前端框架
Angular 6.0.0-beta.0 和 5.2.1 发布,Web 前端框架
Angular 5.2 现已发布,Web 前端框架
Angular 5.2.0-rc.0 和 5.1.3 发布,Web 前端框架
Angular 5.2.0-beta.1 和 5.1.2 发布,Web 前端框架
Angular 5.2.0-beta.0 和 5.1.1 发布,Web 前端框架
Angular 5.1.0 正式版发布,Web 前端框架
Angular 5.0.5 和 5.1.0 rc.1 发布,Web 前端框架
Angular 5.0.4 和 5.1.0 rc.0 发布,Web 前端框架
Angular.js 1.6.7 发布,Web 前端框架
Angular 5.0.2 和 5.1.0 beta1 发布,Web 前端框架
Angular 5.0.1 和 5.1.0 beta0 发布,Web 前端框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务