migration – Stepan Suvorov Blog https://stepansuvorov.com/blog Release 2.0 Thu, 22 Oct 2015 08:22:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.1 AngularJS: from 1.2 to 1.4 hints https://stepansuvorov.com/blog/2015/10/angularjs-from-1-2-to-1-4-hints/ https://stepansuvorov.com/blog/2015/10/angularjs-from-1-2-to-1-4-hints/#respond Tue, 20 Oct 2015 20:24:01 +0000 http://stepansuvorov.com/blog/?p=2844 Continue reading ]]> Just a checklist to prevent issues with application migration.

Expressions

  • no .bind, .call and .apply
  • no __proto__
  • no Object

toBoolean

fixed strange behaviour (from 1.3): before ‘f’, ‘0’, ‘false’, ‘no’, ‘n’, ‘[]’  have been converted to false. Check you ng-if statements.

helpers

.copy() – makes a copy of only own properties (from 1.3)

.forEach() – does not take in account new elements (if during the loop size was changed)(from 1.3)

other

directive property replace – is now deprecated (from 1.3)

responseInterceptors property was removed from $httpProvider (from 1.3) – now it’s just $httpProvider.interceptors

$cookieStore is deprecated from 1.4 ( you should use $cookie instead)

If you know more tricky places – do not hesitate to share!

 

]]>
https://stepansuvorov.com/blog/2015/10/angularjs-from-1-2-to-1-4-hints/feed/ 0