navigate vs navigateByUrl: Understanding the Differences for Interviews | Angular Interview Concepts

  Рет қаралды 5,633

Web Tech Talk

Web Tech Talk

Күн бұрын

Пікірлер: 15
@nikhilgoyal007
@nikhilgoyal007 Ай бұрын
Super Imp to know! thanks!!
@WebTechTalk
@WebTechTalk Ай бұрын
Thank you so much 👍
@MinhNguyen-zx8me
@MinhNguyen-zx8me 2 жыл бұрын
There is a gotcha part in here that you did not mention, and that is the shared service. The fact that the counter variable is defined in here also plays an important part where using either of the navigate method won't reset its value. If you put the variable inside the component, its value will be reset back to 0. It's worth to mention that to your users.
@WebTechTalk
@WebTechTalk 2 жыл бұрын
I used the counter in the shared service just to explain the difference between navigation through href and angular routing. Anyway, thanks for mentioning about what will happen when we have the counter inside the component.
@talib7508
@talib7508 2 жыл бұрын
Can you please make a video on how to reload/refresh current route on navigating to the current url Without using using skipLocationChange strategy.
@WebTechTalk
@WebTechTalk 2 жыл бұрын
There is another option which we can set in the RouterModule. Something like, RouterModule.forRoot(routes, {onSameUrlNavigation: 'reload'}). You can try this, if it is not working, I will try to create a video explaining that concept.
@talib7508
@talib7508 2 жыл бұрын
@@WebTechTalk I have tried that,but no luck sir
@WebTechTalk
@WebTechTalk 2 жыл бұрын
Ok. I will create a video on that
@talib7508
@talib7508 2 жыл бұрын
@@WebTechTalk Thanks sir That would be really helpful and appreciated.
@maheshbishtful
@maheshbishtful Жыл бұрын
Hi, very well optimized video it is, time saving and focused on the concept. very nice keep it up.
@WebTechTalk
@WebTechTalk Жыл бұрын
Thank you so much bro ☺️
@ImMNarravula
@ImMNarravula 2 жыл бұрын
Nice bro 🤝🙌
@WebTechTalk
@WebTechTalk 2 жыл бұрын
Thanks 🤗
@nishanthreddy6071
@nishanthreddy6071 Жыл бұрын
Hi bro I am getting an error in Angular related to angular core missing dependencies.
@WebTechTalk
@WebTechTalk Жыл бұрын
Delete your node modules folder and delete your package-lock.json file and then do npm install.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 12 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН
JIT vs AOT | Learn for Angular Interview
5:57
TheAngularCoder || Gourav
Рет қаралды 22 М.
Routing and Navigation | navigate vs navigateByUrl | Angular Tutorial 28
8:59
What is Routing in Angular | Angular Router | Angular 13+
13:40
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 12 МЛН