Thanks Venkat a lot i learned a lot of things from u.... u will be always remembered and i will always recommended your all tutorial to all programmers..
Hello @David , I think you are a Angular Developer so you are on this video Series , as you have asked to upload React tutorial nearly 5 month back so I just wanted to ask did you completed React after Angular because I am a Angular Developer and I am planning to learn React , But I don't know if I will be comfortable with React after learning Angular , and how much time it took to adopt react , as A Angular developer .. was it confusing ..?
I had an error on ViewChild: Expected 2 arguments, but got 1. Fixed this error: @ViewChild('employeeForm', {static: false}) public createEmployeeForm: NgForm;
Good observation Tharun. Sorry, I missed to test saving the data. To fix this all we have to do is reset the form. I will record and upload a video soon that explains how to do this. Thank you very much for taking the time to let us know about this.
If we hit browser back button once, the guard is called and select Cancel. Then if we click the browser back button again, the actual back happens. Seems an open Angular bug.
Very nicely explained sir!! Instead of register service in module provider , is it fine if I register in provider of createEmployee component itself within decorator?
this works just fine, however it still shows that message after i make changes to the form update it and try to navigate to another route. How do i prevent that.
candeactivate guard does not work for me. code is simple and i have performed all your steps show in video instead of this it is not showing alert box with message. any suggestion?
check if you are added at the right place { path: 'create', component: CreateEmployeeComponent, canDeactivate: [CreateEmployeeCanDeactivateGuardService] },
Thanks Venkat a lot i learned a lot of things from u.... u will be always remembered and i will always recommended your all tutorial to all programmers..
After Angular can you please start ReactJS Videos. There are so many ReactJS Videos but No One Explains the way you do. You are Legend
Indeed
Hello @David , I think you are a Angular Developer so you are on this video Series , as you have asked to upload React tutorial nearly 5 month back so I just wanted to ask did you completed React after Angular
because I am a Angular Developer and I am planning to learn React , But I don't know if I will be comfortable with React after learning Angular , and how much time it took to adopt react , as A Angular developer .. was it confusing ..?
The greatest of them all. thank you a lot!!!
I had an error on ViewChild: Expected 2 arguments, but got 1.
Fixed this error:
@ViewChild('employeeForm', {static: false}) public createEmployeeForm: NgForm;
NgForm in component is undefined, what to import
Superb explanation thanks venkat
Is it possible to use custom confirmation box such as material dialog instead of window.confirm()?
Hello
Could you please tell if this id possible
the guard is showing the confirm alert by clicking submit button also?
Good observation Tharun. Sorry, I missed to test saving the data. To fix this all we have to do is reset the form. I will record and upload a video soon that explains how to do this. Thank you very much for taking the time to let us know about this.
R u uploaded this video for Q)the guard is showing the confirm alert by clicking submit button also?
@@kumarswamy2900 do {yourFormName}.reset(); on Submission on your form it will work
@@souvikpodder7187 thanks man it worked
Thank you for sharing this informative video! 🐻🖐🏻
Great explanation
Rather than on the route, is it possible to guard the destruction of the form?
If we hit browser back button once, the guard is called and select Cancel. Then if we click the browser back button again, the actual back happens. Seems an open Angular bug.
yes , i also checked!
is there any solution for that?
Thankyou for this video, helped me a lot!
Very nicely explained sir!!
Instead of register service in module provider , is it fine if I register in provider of createEmployee component itself within decorator?
what are scenario where we can use custom directives in projects??
Sir..is it possible to use the custom modal popup instead of using the confirm dialog box?
You can try ngx-bootrap modals valor-software.com/ngx-bootstrap/#/modals
this works just fine, however it still shows that message after i make changes to the form update it and try to navigate to another route. How do i prevent that.
Plz can you make a series on SignalR
any1 knows how to do guard that controls multiple components ? (with a condition common to all the components)
thanks !
How to work on same component
Simply amazing
best guard tutorial.....
Great sir...its too helfull
candeactivate guard does not work for me. code is simple and i have performed all your steps show in video instead of this it is not showing alert box with message. any suggestion?
Thank you!
Thank you
Thanks
Getting an error - VM39061 core.js:1665 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'dirty' of undefined
TypeError: Cannot read property 'dirty' of undefined
I'm using Reactive Form. Please help
check if you are added at the right place
{
path: 'create',
component: CreateEmployeeComponent,
canDeactivate: [CreateEmployeeCanDeactivateGuardService]
},
No need of using @viewchild, directly u can write if(component.formname.dirty)