sir please help me, once user logged in to dashboard when he click on browser back button . we should not allow back button to redirect to previous page . how to restrict this.
Nice explanation. I have a query on env variables and token in angular, which are displaying including some part of the code while testing with Burp Suite tool. Pls let us know how to hide this information?
what if we have role base access and some of the component have access for both the user but with some restriction for eg comp can access by 2 user but their is button which is only for one user in that case how we will manage because if we store user role in localstorage it can be changed by user
you have to get role of that user from API side like your role is shopkeeper and you don't have access of delete products. On each page where you have to get roleid and when you get roleid you can implement ngIf condition. Else there are scenario when you will have multiple role than you have to check In property like you are getting role "1,2,3" than this.userroleid = (localStorage.getItem('userroleid') || '').split(','); use this you can check role is present in here or not or else to make it dynamic you have to make dashboard for permission on each page you can to call that service to check permission of that component
sir this is not working currently don't know why even i have tried to run your program too ..after cloning from git still the interceptor is not working.....!!!
@LearningPartnerDigital Hi sir, can you please create video for setting up local with mock json for specific api's which you mentionedin the end of video? Thanks in advance
simply wow! i have barely seen anyone who explains things so smoothly and gives best practice suggestions aswell, hats off!
Thanks for kind words. Keep watching
Sir waiting for series on new features on angular 17
For me thus is the easiest demo ever. Maybe is bc I went deeper into token refresh which is little bit complex
Ohh great 👍
nice explained
sir please help me, once user logged in to dashboard when he click on browser back button . we should not allow back button to redirect to previous page . how to restrict this.
Nice explanation. I have a query on env variables and token in angular, which are displaying including some part of the code while testing with Burp Suite tool. Pls let us know how to hide this information?
truly that was awesome , i loved it 💯
Thanks keep watching
Please tell me,What is the difference between local storage and session storage when we need to prefer them to use Or set please give some examples th
i am not able to find the exact url on github ......please send me exacy url for this video
Great man
you run the code...???
awsome
Is it the best strategy to store token in local storage or any other better option is there?
We can store in session, local or cookies or in service variable..based on project need we use it
what if we have role base access and some of the component have access for both the user but with some restriction for eg comp can access by 2 user but their is button which is only for one user in that case how we will manage because if we store user role in localstorage it can be changed by user
you have to get role of that user from API side like your role is shopkeeper and you don't have access of delete products. On each page where you have to get roleid and when you get roleid you can implement ngIf condition. Else there are scenario when you will have multiple role than you have to check In property like you are getting role "1,2,3" than
this.userroleid = (localStorage.getItem('userroleid') || '').split(',');
use this you can check role is present in here or not or else to make it dynamic you have to make dashboard for permission on each page you can to call that service to check permission of that component
will it run on angular 16?
localStorage is not defined how to resolve it ?
same error for me. How did you solve?
Sir please cover lazy loading as well 2 or 3 modules with lazy module routing file
Yes. Recorded same will upload on Monday
Sir have you covered module routing also
sir this is not working currently don't know why even i have tried to run your program too ..after cloning from git still the interceptor is not working.....!!!
What is error u r having
Why interceptor is applying for login method , how to ignore that?
u can add url check..if url contain login skip that header code
@@LearningPartnerDigital , added in backend spring , in postman working fine without token , only in angular getting 403 error?
I have a problem when I want to integrate my own backend, I get JWT Token that does not start with the word Bearer. :(
I have created api with dot net
@LearningPartnerDigital Hi sir, can you please create video for setting up local with mock json for specific api's which you mentionedin the end of video? Thanks in advance
is the api is not working now?
Sir i am getting the api error http failure for ….api name :0 unknown error
Pls connect on LinkedIn
how can we do dashboard - priviteroute ?
You can implement guard - can activate and add it to dashboard route. Will create a same video on that soon
se agradece, mas por favor
❤
👍
Where is the source code brother
I do not have app.config.ts