Skip to Main Content
Angular Development with TypeScript, Second Edition
book

Angular Development with TypeScript, Second Edition

by Anton Moiseev, Yakov Fain
December 2018
Intermediate to advanced content levelIntermediate to advanced
560 pages
18h 45m
English
Manning Publications
Content preview from Angular Development with TypeScript, Second Edition

Chapter 3. Router basics

This chapter covers

  • Configuring parent and child routes
  • Passing data while navigating from one route to another
  • Configuring and using child routes

In a single-page application (SPA), the web page won’t be reloaded, but its parts may change. You’ll want to add navigation to this application so it’ll change the content area of the page (known as the router outlet) based on the user’s actions. The Angular router allows you to configure and implement such navigation without performing a full page reload.

In general, you can think of a router as an object responsible for the view state of the application. Every application has one router object, and you need to configure the routes of your app.

In this chapter, we’ll ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Angular with TypeScript

Angular with TypeScript

Matt Thornfield
Angular (Full App) with Angular Material, Angularfire and NgRx

Angular (Full App) with Angular Material, Angularfire and NgRx

Academind by Maximilian Schwarzmüller GmbH
Angular in Action

Angular in Action

Jeremy Wilken

Publisher Resources

ISBN: 9781617295348Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link