Angular.Js v1.6.0-rc.0 發布,JavaScript MV*框架
AngularJS是一款開源的JavaScript MV*(MVW、MVVM、MVC)框架,目前由Google維護。AngularJS彌補了HTML在構建應用方面的不足,其通過使用標識符(directives)結構,來擴展Web應用中的HTML詞匯,使開發者可以使用HTML來聲明動態內容,從而使得Web開發和測試工作變得更加容易。AngularJS最初由Mi?ko Hevery和Adam Abrons于2009年開發,后來成為了Google公司的項目。
更新日志
Bug 修復
- input: fix
step
validation forinput[type=number]
/input[type=range]
(081d06 #15257) - jqLite:
- $parse:
- ngModel: treat synchronous validators as boolean always (7bc71a #14734)
- $q: treat thrown errors as regular rejections (e13eea #3174 #15213)
- ngTransclude: use fallback content if only whitespace is provided (32aa7e #15077)
- $compile:
- don't throw tplrt error when there is a whitespace around a top-level comment (76d3da #15108)
- disallow linking the same element more than once (1e1fbc)
- lower the $sce context for src on video, audio, and track. (ad9a99)
- correctly merge consecutive text nodes on IE11 (13c252 #14924)
- secure
link[href]
as aRESOURCE_URL
s in$sce
. (04cad4 #14687) - don't add leading white-space in attributes for a specific merge case (305ba1)
- don't trim white-space in attributes (97bbf8 #5513 #5597)
- move check for interpolation of on-event attributes to compile time (b89c21 #13267)
- select:
- select, ngOptions: make the handling of unknown / empty options consistent (2785ad)
- ngValue: set the element's value property in addition to the value attribute (e6afca #14031)
- aria/ngModel: do not overwrite the default
$isEmpty()
method for checkboxes (975a61 #14621) - $resource:
- $http:
- ngMock: trigger digest in
$httpBackend.verifyNoOutstandingRequest()
(267ee9 #13506) - ngAria:
- ngBind: use same string representation as
$interpolate
(fa80a6) - ngMock/$httpBackend: fail if a url is provided but is
undefined
(7551b8 #8442 #10934) - $route: don't process route change controllers and templates for
redirectTo
routes (7f4b35 #3332) - loader:
module.decorator
order of operations is now irrelevant (6a2ebd #12382) - ngAnimate: make svg elements work with
classNameFilter
(81bf7e)
新功能
- jqLite:
- implement
jqLite(f)
as alias tojqLite(document).ready(f)
(369fb7) - don't throw for elements with missing
getAttribute
(4e6c14) - don't remove a boolean attribute for
.attr(attrName, '')
(3faf45) - remove the attribute for
.attr(attribute, null)
(4e3624) - return
[]
for.val()
on<select multiple>
with no selection (d882fd)
- implement
- $http:
- ngModelOptions: allow options to be inherited from ancestor
ngModelOptions
(87a2ff #10922) - input: add support for binding to
input[type=range]
(913016 #5892 #14870) - ngRoute: allow
ngView
to be included in an asynchronously loaded template (c13c66 #1213) - select: support values of any type added with
ngValue
(f02b70 #9842) - $interpolate: use custom
toString()
function if present (a5fd2e #7317 #11406) - $route: implement
resolveRedirectTo
(e98656 #5150) - input[type=radio]: allow
ngTrim
to work forinput[type=radio]
(47724b) - $q: report promises with non rejection callback (c9dffd #13653 #7992)
- $location: default hashPrefix to
'!'
(aa077e #13812)
性能改進
- form, ngModel: change controllers to use prototype methods (9e24e7)
- select: don't prepend unknown option if already prepended (ba36bd)
- $animate: listen for document visibility changes (d71dc2)
- injector: cache the results of the native class detection check (5ceb5d)
- $parse: Inline constants (bd7d5f)
- $compile: use strict comparison for
controller === '@'
(bbd3db) - $parse: remove Angular expression sandbox (1547c7 #15094)
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/66270511
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!