Presentation made for the NG-CONF Israel 2015
(http://ng-conf.co.il/)
Angular2 is just around the corner.. so, how can we prepare our angular 1.x code base to the migration?
An example project that come along with those slides available on Github (links inside)
13. in the following examples we will
treat our small app as
multi-component large one
Nir@500tech.com
14. a well-written Angular code makes a good start
Nir@500tech.com
adapt common code style and conventions
avoid using $scope as much as you can
break your app into components
prefer services over factories
checkout step-1
16. Nir@500tech.com
integrate a compiler into the build system
use ES6 modules for dependencies
use the class syntax (and anything else..)
checkout step-2-modules
every modern framework / library is already there
checkout step-2-classes
17. our example app is a one-
component small app
Nir@500tech.com
checkout step-2-oneComponent
19. Nir@500tech.com
follow the documents on angular.io site
play with the Angular2 developer preview
learn ES6 first, take a look at TypeScript after.
subscribe to Angular newsletters, blogs etc..
check out the resources.md
checkout step-3-links
learn today = less surprises tomorrow
21. Nir@500tech.com
migration paths and hopefully some tools
probably will be available.
if it possible, clone your app into a separate
repository, and dive in…
checkout step-4
take advantage of Angular2 ASAP