filmov
tv
Angular 4 Tutorial: Routing and Navigation Example
Показать описание
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:
Angular 4 Structure:
How to Create a Component in Angular 4 :
Angular 4 Simple Binding:
Angular 4 Components Properties, Arrays and Objects :
Angular 4 Directives (ngFor, ngif , ngClass, ngStyle )
Angular 4 Pipes Tutorials with Examples:
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:
Angular 4 Structure:
How to Create a Component in Angular 4 :
Angular 4 Simple Binding:
Angular 4 Components Properties, Arrays and Objects :
Angular 4 Directives (ngFor, ngif , ngClass, ngStyle )
Angular 4 Pipes Tutorials with Examples:
Комментарии