Тёмный
No video :(

Navigation Events in Angular | Angular Routing | Angular 13+ 

procademy
Подписаться 53 тыс.
Просмотров 17 тыс.
50% 1

In this lecture you will learn about the sequence of navigation events that are triggered by the angular route when navigating from one route to another route.
The navigation event ranges from when the navigation starts to when the navigation ends with many other events in between.
To see the sequernce of events triggered by the angular route, all we have to do is to enable tracing. We can enable tracing by passing a second argument to theforRoot method, which is an object. To this object, we can specify enableTracing property and set it to true.
We can also run some logic when any one of these events happen by subscribing to router events. In this lecture you will learn:
1. What is router navigation events?
2. How to trace route navigation events?
3. Display loading indicator while navigating to different routes.
***CSS for displaying loading indicator***
.spinner {
border: 16px solid silver;
border-top: 16px solid #222
border-radius: 50%;
width: 80px;
height: 80px;
animation: spin 700ms linear infinite;
top:50%;
left:50%;
position: absolute;
}
@keyframes spin {
0% { transform: rotate(0deg) }
100% { transform: rotate(-360deg) }
}
DOWNLOAD SECTION SOURCE CODE HERE: drive.google.c...

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@prernasingh5564
@prernasingh5564 2 года назад
very clear explanation. Understood the whole concept in a go. Thanks. Doing great work.
@mohammedabdulaziz3658
@mohammedabdulaziz3658 2 года назад
Great lecture again, nice explanation sir
@agustinbaeznunez3947
@agustinbaeznunez3947 Год назад
Good afternoon, I really liked the way you controlled it. Even if you imagine having a route with 'user/{id}', in that case it only works the first time, it doesn't reload on the second time. Any suggestion you can give me? thanks and regards
@MadhavanSPR
@MadhavanSPR Год назад
Great Explanation ❤️ Eager to watch All of your videos 🎉
@jaihorishijain
@jaihorishijain 2 года назад
I think, you have mashed-up all the playlists for angular into one. now it very difficult to find specific topic like router, pipe an..etc. also there is issue in order as well like introduction of pipe is showing after custom pipe.
@jaihorishijain
@jaihorishijain 2 года назад
Please keep playlist topics wise. it is easily for learner. if learner see more then 100 videos for angular may be they will not ready to watch all.
@procademy
@procademy 2 года назад
I will create playlists topic wise again. Some viewers suggested me to create a single playlist for all angular videos. However I think you are right 🙂
@procademy
@procademy 2 года назад
I will rectify the order of videos in this playlist
@jaihorishijain
@jaihorishijain 2 года назад
@@procademy Thanks
@RamanishChoubey
@RamanishChoubey Год назад
Sir this is a really good explanation. I have one question is it possible to call a function written at the destination component after NavigationEnds? Actually, I want to call a function on destination component when routed from a specific component.
@briancastroTI
@briancastroTI Год назад
same question here,
@paulmurielbiya-bi6325
@paulmurielbiya-bi6325 2 года назад
You have subscribed to the navigation events in the ngOnInit method, but have unsubscribed to it. Won’t that cause a memory leakage?
@mohammedabdulaziz3658
@mohammedabdulaziz3658 2 года назад
Sir, I would like to ask you one question which is related to real world scenario in angular The question is Once the navigation started "Popup form" will come & once the navigation end "popup form" will end can we achieve this using navigationStart & navigationEnd It will be not come again if we are navigating to one component to another component.
@procademy
@procademy 2 года назад
What I understand is ...let's say you have a signup link in your app, when user clicks on the signup link you want to show a popup with signup form....is that right??
@mohammedabdulaziz3658
@mohammedabdulaziz3658 2 года назад
@@procademy Yes sir but we don't want to perform on click event it be will like on home component initial load, The thing is we don't want to show a popup form on every internal navigation but we want to show the popup form only once the app load. as we see on WordPress website " popup form will come after a few seconds then it will disappear after a few seconds as we want to achieve the same thing in angular. I just generate the real time scenario base on this video.. Thank you for your reply, sir, your sincere student.
@vinithkumare3137
@vinithkumare3137 2 года назад
Thanks brother
@nasrullahhussaini7182
@nasrullahhussaini7182 2 года назад
How can I fake for example a five second delay in my navigation so that I can see a spinner or loading indicator? Thanks
@srushtidaware7978
@srushtidaware7978 Год назад
use setTimeout()
Далее
Pipes in Angular | Angular Pipes | Angular 13+
14:15
Просмотров 14 тыс.
Музыкальные пародии
00:28
Просмотров 19 тыс.
Senior Angular Developer Interview (theory)
41:57
Просмотров 17 тыс.
What’s new in Angular v18
20:08
Просмотров 118 тыс.