课程咨询: 400-996-5531 / 投诉建议: 400-111-8989
认真做教育 专心促就业
青岛达内it培训机构小编讯
AngularJS最初由Miško Hevery和Adam Abrons于2009年开发,后来成为了Google公司的项目。AngularJS是一款开源的JavaScript MV*(MVW、MVVM、MVC)框架,目前由Google维护。AngularJS弥补了HTML在构建应用方面的不足,其通过使用标识符(directives)结构,来扩展Web应用中的HTML词汇,使开发者可以使用HTML来声明动态内容,从而使得Web开发和测试工作变得更加容易。 更新日志
Bug 修复
input: fix step validation for input[type=number]/input[type=range] (081d06 #15257)
jqLite:
camelCase keys in jqLite#data (fc0c11 #15126)
align jqLite camelCasing logic with JQuery (73050c #7744)
$parse:
treat falsy values as defined in assignment expressions (4f44e0)
call once stable bind-once expressions with filter (3b5751)
Handle sign of -undefined consistently (c1eaf3)
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 a RESOURCE_URLs 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:
add/remove selected attribute for selected/unselected options (c75698)
don't register options when select has no ngModel (e8c2e1)
handle model updates when options are manipulated (47c15f)
remove workaround for Chrome bug (87eff2)
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:
fulfill promise with the correct value on error (5f6949 #14837)
pass all extra, owned properties as params (acb545 #14866)
add semicolon to whitelist of delimiters to unencode in URL params (2456ab)
$http:
avoid Possibly Unhandled Rejection error when the request fails (47583d #13869)
properly increment/decrement $browser.outstandingRequestCount (4f6f2b #13782 #14921)
ngMock: trigger digest in $#() (267ee9 #13506)
ngAria:
bind to keydown instead of keypress in ngClick (ad41ba #14063)
don't add roles to native control elements (9978de #14076)
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 to jqLite(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