Angular Routing and Navigation Playbook
https://www.pluralsight.com/courses/angular-routing-navigation-playbook
by Lara Newsom
Course Overview
- Course Overview
Course Introduction and Code Examples
- Course Introduction and Code Examples
Basic Angular Routing Setup
- Introduction to Angular Routing
- Discussion: Angular RouterModule Exports
- Demo: Bootstrap Angular RouterModule
- Discussion: Declaring Routes
- angular has tow route path match strategies: prefix based or full match
- prefix is the default
- Demo: Declaring Default and Home Routes
- two options for declaring a default route:
- {path: ' ', componenet: DefaultComponent}
- {path: ' ', redirectTo: 'home', pathMatch: 'full'}
- Discussion: Child Routes and Route Order
- Demo: Declaring a Wildcard Route
- wild card routes is: path: '**'
- to enabled logging all navigation events to the console, enable tracing
- Demo: Hooking into Router Events
Routing in Standalone Component Applications
- Introduction to Standalone Components and Routing
- Demo: Bootstrapping Routing in a Standalone Component Based Application
User Navigation between Views
- Introduction to User Initiated Navigation
- Discussion: Introduction to RouterLink
- Demo: Add RouterLinks to Template Elements
- Discussion: Styling the Active Element with RouterLinkActive
- Demo: Style Active Links with RouterLinkActive
- Discussion: Navigating Programmatically
- Demo: Routing from Classed with RouterService
Driving State with Router Params
- Introduction to Router Parameters
- Discussion: Required Path Parameters
- Demo: Adding a Required Path Parameter
- Discussion: A Clear Flow of State
- Demo: Consuming Path Parameters in Components
- using withComponentInputBinding
- Discussion: Understanding Optional Parameters
- Demo: Adding and Consuming Query Parameters
- Demo: Consuming Query Parameters in a Service
Creating Nested Router Outlets and Auxiliary Routes
- Introduction to Nested and Auxiliary Router Outlets
- Discussion: Nested Router Outlets
- Demo: Adding a Nested Router Outlet
- Discussion: When to Use Auxiliary Routes
- Demo: Adding an Auxiliary Route
- 5m 32s
Improving Performance with Lazy Loading
- Lazy Loading Introduction
- Demo: Lazy Loading a Module Based Route
- Demo: Lazy Loading a Standalone Component Route
- Demo: Setting an Application Preloading Strategy
Control User Navigation with Route Guards
- Introduction to Functional Route Guards
- Discussion: Angular Functional Route Guards
- Demo: Implementing CanMatch
- Demo: Converting a Class Based Guard to a Chainable Functional Route Guard
- Demo: Implementing a Route Resolver
Unit Testing Angular Router
- Introduction to Unit Testing the Router
- Discussion: What Are the Boundaries between Unit and End to End Testing?
- Demo: Unit Testing Functional Route Guards
- Demo: Unit Testing router.navigate
- Demo: Unit Testing RouterLinks with RouterTestingHarness
Comments
Post a Comment