Angular source code

Angular Tutorials are good to learn about angular. But sometimes reading the source code is more insightful. We do not have the ambition to decipher all angular but just to point some useful places of the code, where it is better to look directly at the code.

Components of angular

The router

for example

// from /results?page=1 to /view?page=1&page=2
this.router.navigate(['/view'], { queryParams: { page: 2 },  queryParamsHandling: "merge" });
  • The router_link directive It is useful to create a href link in a dynamic way, If you use a simple href, it is note known by angular and will reload all the angular bootstrap…
Written on August 12, 2017