This app is used as a live demonstration during codementor.io's Intro to Angular 2 course. The project is built upon each week to teach the concrete concepts of Angular 2 as well as the development flow of features in Angular 2 using the angular-cli version 1.0.0-beta.15.
- Ensure node.js is installed
- Within the project, run
npm install
- The app is built with The Movie DB API, therefore an API key must be obtained
- Depending on the commit and week, search the app for
your key here
and replace it with your API key - Run
npm start
to start the server - Navigate to
http://localhost:4200/
- The app will automatically reload if you change any of the source files
NOTE: Each week is separated into its own branch
Getting started with Angular 2 (Slides)
- A brief introduction to TypeScript and ES6
- Building an app with the angular-cli
- Structuring an app with NgModules
- The backbone of Angular 2: components
- The Swiss-Army module: services
- Lab 1: Fetching and presenting upcoming movies from an API
Building on Angular 2 (Slides)
- Connecting components and features through routing
- Transforming data through pipes
- Lab 2: Fetching lists of movies by type and displaying more robust data
Dependency injection/content projection/RxJS (Slides)
- How Angular detects change
- View encapsulation with components
- Learning Angular 2’s dependency injection strategy
- Basic content projection in Angular 2
- Using ViewChildren and ContentChildren
- Cold observables, hot observables, EventEmitter, and RxJS
- Lab 3: Favoriting movies and aggregating the count
Using Angular 2 Forms (Slides)
- Developing template-driven/model-driven forms
- Using the built-in form validations
- Defining custom form validations
- Leveraging observables with forms
- Lab 4: Adding a mailing list and newsletter forms to our app