As Angular 2 is not available for production, the Angular team decided to report the new Angular 2 features to the latest Angular 1.x. Thus, keeping up with the latest 1.x will make the code migration easier.
- View Offline
- [Alain] Welcome to Video 1.3 of our course.…In the previous video,…we introduced ourselves to Angular 2.…And in this video we will talk about why…it's very important for you to upgrade your code…to the latest version of Angular 1.x.…We are going to take a look at why we can't switch…to Angular 2 just yet,…and how the decisions made by the Angular team…will help us migrate to Angular 2.…Then we'll see why it's so important to keep up…with Angular 1.x.…Finally, we will see how to find out when a new version…of Angular 1.x is released and how to install it.…
Let's understand why we can't really fully switch…to Angular 2 right now.…You may already know that Angular 2…is still work in progress,…and is now available in beta version.…What does this mean for us?…It means that the Angular team is confident…that most developers can successfully build…Angular 2 applications.…As you can see, production applications had Google…already use Angular 2.…Even if you're not comfortable using…a beta version in production,…you can still start the process right now,…
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