- [Narrator] Now we move onto the first video…of the section where we're going to introduce…TypeScript and use it in our Angular 1.x services.…First we're going to take a look at TypeScript…and give you the necessary resources…to get started with TypeScript.…Then we are going to convert…our existing Angular 1.x services to Typescript classes.…We already introduced TypeScript in section two,…but now we need to get to…know that language a little better,…as we are about to use it in our application.…

The official website has a lot of documentation…and tutorials, so don't hesitate to take a look…at the URL for more information.…What we need to know for now…is that TypeScript requires a transpiler…in order to become ES5 code, which is today's JavaScript.…Browsers will only work with JavaScript code in the end.…What's great is that JavaScript is valid TypeScript code,…so our current Angular 1.x application…is a valid TypeScript application as well.…

This means we can take our time…to introduce TypeScript concepts into our code…

Resume Transcript Auto-Scroll

Author

Released

9/2/2016

Note: Migrating to Angular 2 was created by Packt Publishing. It was originally released on 3/30/16. We are pleased to host this training in our library.

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.