Angular

Angular Route Params

In this tutorial, we look at how to pass parameters or data to the Route in Angular. We look at how to define the route, which accepts the parameter.  We then learn how to pass the parameters to the route using the routerLink directive. Finally, we learn how to retrieve the parameters using the ActivatedRoute Service.  The parameters can be retrieved by using the either by snapshot method or by subscribe method. We take a look at both of these methods.

Angular Route Params Read More »

Location Strategy in Angular

In this tutorial, we look at the Location Strategies (browser URL styles) supported by the Angular routing module. Angular Supports PathlocationStrategy and HashLocationStrategy. We will look at what is client-side routing and how it works. We take a look at how hash style HTML5 routing works and pros cons of each. Finally, we will learn how to build the Angular application using the PathLocationStrategy (HTML5 routing ) HashLocationStrategy.(hash style Routing )

Location Strategy in Angular Read More »

Angular Routing Tutorial with Example

In this Routing & Navigation in Angular Tutorial, we look at how navigation & Routing works in Angular using the Angular Router. We will see what routing is and the components of the Angular Router Module. We will show you how to setup and configure the router in the Angular application. Finally, we will create a sample application with four components and create menu navigation system using the Angular Router.

Angular Routing Tutorial with Example Read More »

Scroll to Top