Angular 2 has a list of best practices to make our code aligned with the vision of the Angular team. In this video, we will see what those best practices are.
- [Man] Hi, and welcome to our final section, Section 5,…where we will learn about how to work…with Angular 2 in the Long Run.…We are specifically going to learn…about the best practices for Angular 2,…talk about the future of ES6,…and show you where to find help and support for Angular 2.…Now, let's move on to the first video of this section,…where we're going to learn…about the best practices for Angular 2.…First, I will show you…where the best practices document can be found.…Then we will highlight the most important…best practices from that document.…
Finally, we will understand why it's important…to follow those practices.…Let's start by taking a look at the Best Practices Document,…which is something that already existed for Angular 1.…It collects patterns and practices…that have been proven to result in cleaner…and more maintainable applications.…It's endorsed by the Angular team…from their own experience of developing…Angular 1 and Angular 2.…Here is the URL for that document.…Let's take a look at what's inside.…
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