Angular Tutorial - 28 - Relative Navigation

  Рет қаралды 158,160

Codevolution

Codevolution

Күн бұрын

Пікірлер: 54
@irene693
@irene693 6 жыл бұрын
I completed the series just now, I want to say a huge Thank you!
@SunilGupta-yy1gh
@SunilGupta-yy1gh 3 жыл бұрын
All Videos are of less duration with very high quality. Thank you so much Vishwas.
@ExploreWithKeerti
@ExploreWithKeerti 3 ай бұрын
Thank you for these videos , it is very helpful . You have covered almost all basic concepts.
@engalibadouin5222
@engalibadouin5222 4 жыл бұрын
I Ali from Egypt and pleased to get this tutorial. very big thank you Vishwas
@jonattansalcedo6924
@jonattansalcedo6924 4 жыл бұрын
Hi, I detected a bug in the code, can you tell me how to fix it? So, I'm at the "/departments" route, when I click on "Angular" it takes me to the "/departments/1" route, when I click back it takes me to the "/departments" route with the optional parameter "id=1", so everything is good so far, but when I click again to "Angular" or any other department the route keeps the old optional parameter and it adds the new id like this "/departments;id=1/2".
@aaronmontague623
@aaronmontague623 4 жыл бұрын
Best I can tell, go back to the original code: this.router.navigate(['/departments', department.id]); Several searches at Stackoverflow have yielded nothing better :)
@periklisrips4355
@periklisrips4355 3 жыл бұрын
Yes, I don't think that's a bug per se. The same happens to me. As far as I can tell, it's just keeping the optional id, but it still navigates to the '/departments/2'. The fact that '/2' is after the optional parameter doesn't mean anything. Because then, when you navigate back, the optional id will change to '/departments;id=2' and then you can carry on. I think Angular is smart enough to understand where the parameters part starts and ends, and where the path starts and ends. :)
@Shapuleto
@Shapuleto 2 жыл бұрын
Even if it's fully functionally, it doesn't supposed to work like that right?!
@sonalimore1501
@sonalimore1501 5 жыл бұрын
Great help.. thank u so much.. all videos are really very useful and informative. Thanks again.
@write2sampath1
@write2sampath1 6 жыл бұрын
Please make a video on viewChild,viewChildren, contentChild, contentChildren and viewContainerRef . It'll be useful
@Dark23144
@Dark23144 6 жыл бұрын
Sampath kumar paravasthu Yes I also need those videos
@rodjjj
@rodjjj 3 жыл бұрын
The optional parameter after going back persists. It makes the url look weird but is not programmatically wrong. /one;id=5/5
@Shapuleto
@Shapuleto 2 жыл бұрын
Got any solution to this?
@umaunni5426
@umaunni5426 6 жыл бұрын
i completed all the angular 2 series videos. good and easy to understand. thank you.. could u post video for dynamic component loader. and why and when we use that.
@abhinavanand5584
@abhinavanand5584 3 жыл бұрын
Hello sir. Great series..!! One query :- After applying relative navigation, when I select “Angular”, it takes me to “localhost:4200/department-list/1” and after going back it changes to “localhost:4200/department-list;1”. After this, if I click on “Node”, the url is “localhost:4200/department-list;id=1/2” which seems to be logical but it doesn’t look good though. How can I make it to “localhost:4200/department-list/2” Thank you.
@tramesh6
@tramesh6 6 жыл бұрын
Good Series. One clarification, the department button in html part the link is absolute right how can it change with relative ?
@mk553
@mk553 4 жыл бұрын
Something's definitely changed here, and no longer works as expected. Hope this video will be updated for Angular 9 soon. I'm noticing a lot of minor changes with 9, for what it's worth.
@prashansapriya5963
@prashansapriya5963 3 жыл бұрын
Amazing course 👍
@selcukilhanaydi4994
@selcukilhanaydi4994 5 жыл бұрын
This tutorial is great but in this video i have just seen something weird, that is, after last back to the department-list and selecting a new department and going to the department-details component again the component's view in the url will be wrong through using relative route here. So this is a semantic error. But not a big deal, so thank you so much for your perfect sharing.
@mukaofssn
@mukaofssn 4 жыл бұрын
Is there a way to set the url back to normal?
@umutacer01
@umutacer01 6 жыл бұрын
We've beeen expecting for you to completed series!
@incognitomode4628
@incognitomode4628 6 жыл бұрын
i completed all the videos in this series till now they are easy to understand and informative just one question how many more videos are still left in this series?
@GuriLudhiana
@GuriLudhiana 6 жыл бұрын
Amazing tutorials 👍👍
@surajkumarjha4192
@surajkumarjha4192 5 жыл бұрын
Inside app-routing.module.ts file, in the Routes array, in the first element, if we give { path : '', redirectTo: '', pathMatch:'full'}, then clicking on "Department" button from home page won't direct to renamed link department-list.. Please help to check and suggest on this..
@rushikeshchoche9555
@rushikeshchoche9555 5 жыл бұрын
Why is your redirectTo value blank?
@rushikeshchoche9555
@rushikeshchoche9555 5 жыл бұрын
goPrevious and goNext is not working after making changes for relative navigation
@EasyCompanyEagle
@EasyCompanyEagle 5 жыл бұрын
Not sure if this is the best way, but this seems to work: this.router.navigate(['../' + nextId], {relativeTo: this.route});
@mukaofssn
@mukaofssn 5 жыл бұрын
this works as well: this.router.navigate(['../', nextId], {relativeTo: this.route}); Makes the router apply one level up and then the param nextId to navigate back to the appropriate department detail page.
@codehan
@codehan 6 жыл бұрын
But now the previous button and the next button stop working when I change the path to 'department-list'. How can I fix this problem?
@beshg2298
@beshg2298 6 жыл бұрын
use this.router.navigate([nextId], {relativeTo: this.route.parent}); so to go to parent and then append the id to it
@JuanCamiloCampoT95
@JuanCamiloCampoT95 6 жыл бұрын
it doesn't work besh, what you have to do is the same thing as well. this.router.navigate(["../", nextId ], { relativeTo: this.route}); that way it will works.
@PavanGarigipati
@PavanGarigipati 5 жыл бұрын
You have to change the code in respective goNext() and goPrevious() functions. I mean path navigation code.
@AizenSousuke92
@AizenSousuke92 5 жыл бұрын
@@PavanGarigipati so it loads pages with id of departments that are not even there now?
@babu-vp3fp
@babu-vp3fp 3 жыл бұрын
@@JuanCamiloCampoT95 thanks bruu,,,you just nailed it
@nilbristi
@nilbristi 3 жыл бұрын
Can you please create a video regarding the inside properties of navigate and navigateByURL? There are a lot of things but not able to understand all of them.
@KM-yo3zc
@KM-yo3zc 4 жыл бұрын
wouldn't you also have to edit the app.component.html to change the anchors routerLink to reflect the changes done in the app-routing.module.ts?
@nithyak8450
@nithyak8450 4 жыл бұрын
I use angular 8 version and when I try this I am getting the url change. Not even change the url and getting page not found. Can someone help me on this. Thanks in advance Happy coding
@malavikagopinath788
@malavikagopinath788 4 жыл бұрын
I'm having same problem. Have you corrected it?
@poojanoothi3748
@poojanoothi3748 4 жыл бұрын
the route in "relativeTo:this.route." is it instance of activaredRoute?
@samvelgevorgyan5015
@samvelgevorgyan5015 5 жыл бұрын
Thank you very much the best tutorial
@PavanGarigipati
@PavanGarigipati 5 жыл бұрын
In the above example we have only one route with parameter so its ok, but if we have another route with one parameter like 'student/:id' then what's happen ?
@110_ayusheeshaw5
@110_ayusheeshaw5 2 жыл бұрын
spend 4 hours, absolute path is working fine done the same like video for relative path but showing page not found not worked maybe some features are changed or maybe your code have some faults.
@sherifkhattab1313
@sherifkhattab1313 6 жыл бұрын
Thank you very much Will u be posting more videos plz?
@muhaiminurrahman6038
@muhaiminurrahman6038 4 жыл бұрын
For Angular 9 Use this import { ActivatedRoute,Params } from '@angular/router'; ngOnInit(): void { this.route.params.subscribe((params: Params) => { let id = params['id']; this.seller_id = id; }); }
@durgababubalepalli1599
@durgababubalepalli1599 10 ай бұрын
All videos i could be able to do successfully..except this one..Thank you... I have tested with gitcode, working only wheni change departments and departmentslist, whenever i change departs page not found iam getting..any help..appreciated..Thank you once again.
@amitkavinkar1627
@amitkavinkar1627 6 жыл бұрын
Very Very Thanks you So much
@jaypatel2471
@jaypatel2471 11 ай бұрын
!!! IT may possible that in current version this code don't work, (currently V 17)
@ai.aspirations
@ai.aspirations 5 жыл бұрын
awesome thanks
@seenuvasanv
@seenuvasanv 6 жыл бұрын
good one.
@TheBigbose23
@TheBigbose23 5 жыл бұрын
Hi Guys, it's really very good videos for better understanding, But I found up to 28th classes. Can anyone share me the all the videos link or any subscribe links to take these classes. Thanks in advance.
@tester8422
@tester8422 2 жыл бұрын
Voice pidy high
@riyasabdulsalamraz
@riyasabdulsalamraz 6 жыл бұрын
Amazing tutorials 👍👍👍
@andrescuellar9234
@andrescuellar9234 4 жыл бұрын
Hi, I detected a bug in the code, can you tell me how to fix it? So, I'm at the "/departments" route, when I click on "Angular" it takes me to the "/departments/1" route, when I click back it takes me to the "/departments" route with the optional parameter "id=1", so everything is good so far, but when I click again to "Angular" or any other department the route keeps the old optional parameter and it adds the new id like this "/departments;id=1/2".
@karthikeyansp7504
@karthikeyansp7504 4 жыл бұрын
same problem here
Angular Tutorial - 29 - Child Routes
6:58
Codevolution
Рет қаралды 229 М.
Angular Tutorial - 27 - Optional Route Parameters
7:41
Codevolution
Рет қаралды 181 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Angular Tutorial - 23 - Routing and Navigation
12:51
Codevolution
Рет қаралды 932 М.
Deferrable views in Angularv17
6:04
Angular
Рет қаралды 24 М.
CanActivateChild Route Guard - Angular (Tutorial #25)
10:56
Nisha Singla
Рет қаралды 17 М.
Angular Tutorial - 26 - paramMap Observable
6:37
Codevolution
Рет қаралды 226 М.
Navigation Events in Angular | Angular Routing | Angular 13+
14:44
Angular Tutorial - 25 - Route Parameters
9:56
Codevolution
Рет қаралды 379 М.
Routing and Navigation in Angular | Mosh
24:32
Programming with Mosh
Рет қаралды 285 М.
Angular 17 Features With Examples - You Must Know That
14:44
Monsterlessons Academy
Рет қаралды 40 М.