📜 ⬆️ ⬇️

Triangular-enriched release of AngularJS 1.1.5. What's new?

Yesterday, the developers rolled out a new (not yet stable) version. Major changes:

$ animator:
added support for custom animation events [ click ]
added the ability to globally disable and enable animation [ click ]

$ http:
Added the ability to abort a request when promising (promise object) [ click ]
added default header for PATCH requests
added timeout support for JSONP requests
')
$ parse: added support for the ternary operator (exp1? exp2: exp3)

$ q: The $ q.always () method has been added to the promise API, useful for cleaning up trash after promises have been fulfilled [ click ]

$ controller: added support for aliases “as controllerAlias” in attributes [ click ]

$ injector: Added has method for queries

Directives:

ngAnimate:
Added support for CSS3 animation with work delays and composite duration [ click ]
as well as the cancellation of previous unfinished animations when starting a new

ngSrcset: Added new directive ngSrcset (similar to ngSrc and ngHref)

ngIf: added adapted ui-if from AngularUI. Unlike ngShow / ngHide deletes / restores an item in the DOM

select: added trackByExpression for working with arrays and objects

ngInclude: added $ includeContentRequested event, which occurs when content is requested

Mobile devices:

ngClick: renamed ngTap + now it adds the CSS class for the clamped element [ click ]

ngSwipe: added directives for left and right svayp [ left , right ]

Docks have been improved, bugs fixed and so on.

Full list of changes in English . You can download the assembly from the official site

Source: https://habr.com/ru/post/180767/


All Articles