Книга: Angular 2 Cookbook
Назад: Building a fully featured AutoComplete with Observables
Дальше: Setting up an application to support simple routes

Chapter 6. The Component Router

This chapter will cover the following recipes:

  • Setting up an application to support simple routes
  • Navigating with routerLinks
  • Navigating with the Router service
  • Selecting LocationStrategy for Path Construction
  • Building stateful RouterLink behavior with RouterLinkActive
  • Implementing nested views with route parameters and child routes
  • Working with Matrix URL parameters and routing arrays
  • Adding route authentication controls with route guards

Introduction

Few features of Angular 2 should be anticipated more than the Component Router. This new routing implementation affords you a dazzling array of features that were missing or severely lacking in Angular 1.

Angular 2 implements matrix parameters; this is an entirely new syntax for URL structures. Originally proposed by Tim Berners-Lee in 1996, this semicolon-based syntax gives you the ability to robustly associate parameters not just with a single URL, but with different levels in that URL. Your application can now introduce an additional dimension of application state in the URLs.

Additionally, Component Router gives you a method of elegantly nesting views within each other as well as a simple way of defining routes and links to these component hierarchies. For you, this means your applications can truly take maximal advantage of defining an application as an independent module.

Finally, Component Router fully embraces integration with Observable structures and provides you with some beautiful ways of navigating and controlling navigation within your application.

Назад: Building a fully featured AutoComplete with Observables
Дальше: Setting up an application to support simple routes

thank you
Flame
cant read the code since it is all on a single line. Also this comments section is russian
Rakuneque
DATA COLLECTION AND ANALYSIS Two reviewers extracted data and assessed methodological quality independently lasix torsemide conversion Many others were in that space already