AngularJS诞生于Google是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC、模块化、自动化双向数据绑定、语义化标签、依赖注入,等等。
Angular.js v1.5.10 发布了。
更新内容:
Bug 修复
$compile:
don't throw tplrt error when there is whitespace around a top-level comment ({aa49aa} {aa48aa})
clean up @
-binding observers when re-assigning bindings ({aa47aa} {aa46aa})
set attribute value even if ngAttr*
contains no interpolation ({aa45aa} {aa44aa})
bindToController
should work without controllerAs
({aa43aa} {aa42aa})
do not overwrite values set in $onInit()
for <
-bound literals ({aa41aa} {aa40aa})
avoid calling $onChanges()
twice for NaN
initial values ({aa39aa})
$location: prevent infinite digest with IDN urls in Edge ({aa38aa} {aa37aa})
$rootScope: correctly handle adding/removing watchers during $digest
({aa36aa} {aa35aa})
$sce: fix adjustMatcher
to replace multiple *
and **
({aa34aa})
jqLite: silently ignore after()
if element has no parent ({aa33aa} {aa32aa})
input[radio]: use non-strict comparison for checkedness ({aa31aa})
select, ngOptions:
let ngValue
take precedence over option text with multiple interpolations ({aa30aa} {aa29aa})
don't add comment nodes as empty options ({aa28aa} {aa27aa})
ngClassOdd/Even: add/remove the correct classes when expression/$index
change simultaneously ({aa26aa})
$sanitize: reduce stack height in IE <= 11 ({aa25aa} {aa24aa})
ngMock/$controller: respect $compileProvider.preAssignBindingsEnabled()
({aa23aa})
新特性
bootstrap: do not bootstrap from unknown schemes with a different origin ({aa22aa} {aa21aa})
$anchorScroll: convert numeric hash targets to string ({aa20aa} {aa19aa})
$compile:
add preAssignBindingsEnabled
option ({aa18aa})
throw error when directive name or factory function is invalid ({aa17aa} {aa16aa})
$controller: throw when requested controller is not registered ({aa15aa} {aa14aa})
$location: add support for selectively rewriting links based on attribute ({aa13aa})
$resource: pass status
/statusText
to success callbacks ({aa12aa} {aa11aa} {aa10aa})
ngSwitch: allow multiple case matches via optional attribute ngSwitchWhenSeparator
({aa9aa} {aa8aa} {aa7aa})
性能提升
all: don't trigger digests after enter/leave of structural directives ({aa6aa} {aa5aa})
$compile: validate directive.restrict
property on directive init ({aa4aa})
ngOptions: avoid calls to element.value
({aa3aa})
jqLite: move bind/unbind definitions out of the loop ({aa2aa})
下载地址:
{aa1aa}
{aa0aa}
来源: