Angular 4 Tutorial: Routing and Navigation Example

Published: 28 May 2017
on channel: dotsway
39,129
210

Angular 4 Routing and Navigation Example

In Angular 2 and Angular 4 you can navigation between pages without the need of reloading the whole page.

Angular 4 Router

By using Angular router you can move from one page to another without reloading the whole page.

Angular 4 Router Example

In the following example i will create a page with two links, each link will change the content of the page without going to a different url.

I started by creating a new Angular 4 project, in Angular 4 structure there is a main component which i will add the links to it 'ex.: about and news' links.

Create Pages Components

Now i will start by creating 2 components, one for the about page and the other

Please check the rest of the written Angular 4 Routing tutorial:


If you want to know how to Install Angular 4 or check my first Angular 4 Tutorial please check Angular 4 QuickStart - Part 1:
https://goo.gl/pS4eEz

Angular 4 Structure:
https://goo.gl/6J22gr

How to Create a Component in Angular 4 :
https://goo.gl/493WD6

Angular 4 Simple Binding:
https://goo.gl/aaiqxd

Angular 4 Components Properties, Arrays and Objects :
https://goo.gl/Zb72JO

Angular 4 Directives (ngFor, ngif , ngClass, ngStyle )
https://goo.gl/t26QKD

Angular 4 Pipes Tutorials with Examples:
https://goo.gl/ljB9yu


On this page of the site you can watch the video online Angular 4 Tutorial: Routing and Navigation Example with a duration of hours minute second in good quality, which was uploaded by the user dotsway 28 May 2017, share the link with friends and acquaintances, this video has already been watched 39,129 times on youtube and it was liked by 210 viewers. Enjoy your viewing!