Creating a Route Module File | Angular Router | Angular 13+

preview_player
Показать описание
We have defined our routes in AppModule file. However, its always a good practice to include the route definition in a seperate module file when we have more than 2 - 3 routes for our angular application.

In this lecture, we will create a new module file and inside that we are going to define all the routes of our angular application. I will show you step by step, how you can create a router module file where you can define your angular applications route and than how to register it in AppModules file.

You are going to learn following topics in this lecture:
1. Why we should define routes in a seperate module file?
2. How to create a module file and define routes in that file?
3. How to register the route module file in AppModules.

Рекомендации по теме
Комментарии
Автор

It is simple & easy to learn this concept..
Thank you

mohammedabdulaziz
Автор

Amazing course...It includes every small concept and that too in depth..Thanks a ton!!

jahnvidalwadi
Автор

Congratulations for 1k sub🕺 let's wait for 10k with in short time

leninnani
Автор

Hi, It is very helpful lecture and easy to understand, could you please explain what is difference between RouteModule.forRoot() and
RouteModule.forChild() ?

larmaysee
Автор

The zip file in source code link is not related to routes, it's a different zip file. Kindly share the correct file please

danielrose
Автор

Hi Sir, have you explained modules in Angular in any of your video?

Swarajcookingnfun
Автор

If possible please help me with your VS code extensions, looking gud, I want to install

leninnani