What are the main issues when upgrading from Angular 1.0 to Angular 1.3.2

I have an Angular 1.0 application and I was asked to upgrade it to 1.3.2. What are the main changes / new features between these two versions. What are the biggest problems.

I know this question is pretty broad. I do not know how to narrow it at this moment. Suggestions on how to narrow down the comments would be very welcome.

+4
source share
4 answers

Well, I have to say, since it looks like a minor version, it definitely seems to me that you are upgrading to the main version (with all these changes).

I would point out some cases that for me are one way or another:

  • 1.3, , .
  • IE 8 ( )
    • $cancelUpdate
    • $
    • $
    • $
  • API
    • .
    • $
    • $
  • Angular
    • NgRoute
    • NgResource

.. , , .

, , , . angular ( ) , , , ngAria, ngMessages, ngModelOptions ..

,

+6

Angular / -. :

1.0 1.2:

  • ngRoute
  • noautautatically unwrap promises
  • , $route.
  • [src], [ng-src] .
  • DOM
  • -start -end
  • $q . always prom.finally
  • ngMobile ngTouch
  • . $
  • promises
  • $location.search
  • ngBindHtmlUnsafe ngBindHtml
  • , ,
  • hasOwnProperty
  • : postLink
  • ngScenario
  • ngInclude ngView
  • URL-
  • ,
  • / ,
  • , []
  • , , i18n

1.2 1.3:

  • .bind,.call .apply angular.
  • proto angular.
  • Angular.copy: . angular.copy .
  • f, 0, false, no, JavaScript ; : false, null, undefined, NaN, 0 "".
  • , $compile: multidir, , , .
  • input: date, time, datetime-local, month, week now , Date
  • detach() jQuery $destroy. angular, , remove().
  • $broadcast $emit reset currentScope null . - currentScope, targetScope. .
  • Angular.toJson: , Json , .
  • $
  • jqLite Text/Comment, Element Document, jQuery. , .
+3

ng-route ng-resource / angular 1.3.2. js script html .

+1

There is one major change that I discovered when working with the angularjs application, which is used by filters in the template.

For instance,

In the old version

| filter: {product.name: stock.product.name}

In the updated version

| filter: {product: {name: stock.product.name}}

+1
source

All Articles