The Angular team wants to make our migration to Angular 2 easy by making Angular 1.x as close as possible to Angular 2.
- [Alain] Our next video is all about using…the latest Angular 1.x in our application…in order to get our code as close as possible to Angular 2.…First, we're going to see how to migrate our application…to the latest Angular 1.x.…Then we will take a look at the migration notes…to make sure our app doesn't need…a specific modification because of that migration.…Finally, we will test our application to make sure…it still works fine with the latest Angular 1.x.…To migrate our sample application to the latest Angular 1.x,…we will perform the following steps:…the first step is to figure out the latest version,…which we're going to find on angularjs.org.…
Here angularjs.org website, the latest stable version…can be seen on the blue button.…Right now, 1.4.8.…If I click on that button, I can download…that specific version to use it in my application.…Now that we know that we are going to use Angular 1.4.8,…we will make our app use that specific version.…Our sample project uses Grunt and Bower as build tools.…Here, I am now editing the Bower of json file…
Angular 2 is a technical and conceptual overhaul of its hugely popular predecessor, AngularJS. To stay ahead, developers who have built and maintained projects with AngularJS need to be able to transition them to Angular 2. Migrating to Angular 2 demonstrates how to create and execute an effective migration plan for Angular applications. It opens with an introduction to the major changes and additions brought by the new framework. Then author Alain Chautard reviews a plan to migrate a sample weather application from its original Angular 1.x codebase.
Learn how to migrate blocks of code incrementally, as opposed to porting code in bulk, and get a brief introduction to TypeScript and ECMAScript 6. Along the way, Alain shows you how to gradually deprecate $scope, upgrade services, work with the component router, transition forms, and more.
By the end of this course, you'll be up to speed with the fundamental building blocks of Angular 2 development, and fully capable (and confident) transitioning existing Angular 1.x projects to the new environment, ready to explore everything that Angular 2 has to offer.
- What's new in Angular 2?
- Migrating incrementally
- What are TypeScript and ES6?
- Cleaning up $scopes
- Making components
- Using TypeScript classes
- Upgrading 1.x services, components, and controllers
- Best practices for Angular 2