In this article, we are going to learn how to implement routing in Angular 2 with examples. Routing is a concept which helps users to navigate from one view to another view of the application.
By default, Angular runs change detection on all components every time something changes in your app — from a click event to data received from an ajax call. ( user events, timers, xhr, promises, etc. ) Imagine, for example, that we have a select component.
Many frontend applications require the extensive use of forms to allow users entering information. Angular supports various mechanisms to handle forms, but the author of this article, Niklas, struggled to figure out how to handle validations of data on different pages/routes. Below is a pattern he's used based on Redux which doesn’t leverage much of the Angular forms functionality but works very nicely for him.