Angular routing and navigation

preview_player
Показать описание
In this video we will discuss setting up routing in our sample application.

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

The routing techniques discussed in this video can be used with Angular 2 and later versions. The same techniques will also work in Angular 4 and Angular 5.

Here are the steps in short

2. Import the RouterModule into the application root module AppModule. The Router Module contains the Router service and Router directives such as (RouterLink, RouterLinkActive, RouterOutlet etc). So for us to be able to implement routing, we first need to import the Router Module in our AppModule.

const appRoutes: Routes = [
{ path: 'list', component: ListEmployeesComponent },
{ path: 'create', component: CreateEmployeeComponent },
{ path: '', redirectTo: '/list', pathMatch: 'full' }
];

To let the router know about the routes configured above, pass "appRoutes" constant to forRoot(appRoutes) method We also have forChild() method. We will discuss the difference and when to use one over the other in our upcoming videos

We are using Bootstrap navbar component to create the navigation menu. We discussed Bootstrap navbar component in Part 28 of Bootstrap tutorial. The following is the link.

Text version of the video

Slides

Angular CRUD Tutorial

Angular CRUD Tutorial Text Articles & Slides

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic
Рекомендации по теме
Комментарии
Автор

You are the best tutor i have ever seen. lucky to find you.

GunaNidhiPokhrel
Автор

It's amazing voice and nice teaching awesome explain

The best angular tutorial in the world

munapadhi
Автор

Can you show all CRUD operation using database rather that hard code data. I checked your angular 2 tutorial which has database operations get, but nothing about put and post. And Basically that videos are in Visual Studio and these are in Visual Code . How to combine both these together for database driven Web Application . I am stuck and can not do anything.
As all form validation and other part is in Visual Code i am working on Visual Code with Angular Cli, but unable to do any data operation . Please Can you help me out Sir.

tejnarkul
Автор

You have excellent talent of teaching complex in a simple way, really appreciate, can you please cover NgRx and NgSx in upcoming sessions, without which Angular course is incomplete i believe

srikanthek
Автор

thanks a lot,
this video clear the all concept of routing.
good job.

afjalhusain
Автор

Sir I am a big of your,
Your teaching idea is so good and easily understable,
Sir plz give the idea to implement new bootstrap admin templete theme with single page application in our vs 2017

PradeepKumar-ipzo
Автор

If you delete your content in youtube. it's a huge loss to us. 😅. Please never delete a single video by any chance sir.🙏🙏

harish.d
Автор

Hi sir. Can you show with visual studio and MVC?

RameshPalusamy
Автор

sir can u pls show it in the visual code sir

avinashmannava
Автор

sir pls upload the service workers in angularJs

juturisharon
Автор

sir it provide thc code in text fromat too

LogicalManSujeet