Join Aviv Ben-Yosef for an in-depth discussion in this video Exercise files, part of Upgrading to Angular 1.6.
- [Narrator] If you have access to the exercise files, you can download them from the course page. I have a copy here on my desktop. The files are organized into chapter folders. In each chapter folder, there's a video folder that includes the exercise files for that lesson. You can also pull a copy of the exercise files using this course from the GitHub repo. Feel free to either fork the repo, or download a zip of the project code. A GitHub account is not required. To run the exercise files from GitHub, you will need Git and NPM installed locally.
If you have not used Iver, I recommend checking out the courses 'Up and Running with Git and GitHub' and 'Up and Running with NPM, the Node Package Manager'. The project code has a ReadMe file with the instructions to set it up and working with the different versions. The project code has a branch for each video. You need to run the 'npm install' command only once and from there, you can simply check out branches to follow along with the exercise files for each video. If you download the exercise files from the course page, you'll need to run the 'npm install' command in each folder individually.
If you're viewing this course on a mobile device, or otherwise don't have access, that's okay. You can still follow along by watching how I use the files.
Aviv Ben-Yosef kicks off the course by explaining what's different in Angular 1.6, as well the different motives for upgrading. Next, he walks through how to safely upgrade an existing app. He covers going from controllers to directives, as well as component lifecycle hooks. He also goes into the architectural changes in Angular, such as one-way data flow and immutability. To wrap up, he discusses how to properly test components.
- Deciding to upgrade an existing app
- Upgrading to Angular 1.6
- Removing standalone controllers
- Using directives as route targets
- Converting a controller's code
- Converting a controller's template
- Comparing directives and components
- Converting a directive
- Reviewing the concept of one-way binding