Angular 9 Tutorial For Beginners #29 - Routing Strategies Angular having 2 types of routing strategies - PathLocationStrategy (default) , HashLocationStrategy (we will see # in the url) 1. This is extremely important 2. \home \dashboard, \search?keyword=k1, /product, /product/10, /product/10/details, /product?search=param 3. We can create our own strategy there is no strategy. By default, PathLocationStrategy 4. We need to add this in Providers of our module app.module.ts providers: [ { provide: LocationStrategy, useClass: HashLocationStrategy } ],
These notes which you making, this looks really very helpful. Is it shared anywhere? Can I please get it. thank you for the wonderful work you are doing.
Hi, nice video. One thing, if my URL's have '#' it has consequencies in SEO or google robot? The thing is when I upload my project in my hosting and if I refresh page it shows a 404 not found error but with HashLocationStrategy it's solves. But I do not really like, you cannot change # for something else at least?
No buddy. Unfortunately we cannot change the # thing. Its either path or hash. I know a lot hosting providers will not support path directly. But using Hash wont have any problem in SEO. So don't worry about that thing.
Ha ha ah ah. Buddy I have got better quality videos on Angular 10 series with much more details. Please find them here ruclips.net/video/Fg4spR6cdBQ/видео.html
As I learned from internet When we deploy angular application into production server, we need to apply hasing strategy, If we use pathlocationstrategy ,then 404 errors will come. But why this 404 errors will occur What is the exact reason for that,can you please explain here.
Hi sir please I need some help on angular (web workers)? I have a method that interact with the backend and it take a long time to execute from 1 hour to 3, and I need to use web worker to keep this method running in the background and keep the user use the all entire application like normally until the method terminate it's process and display an alert to notify the user. Thanks sir in advance.
Most important question I have you didn't explain in the video. what is the difference between Hash and Path Strategies. Which kind of scenarios need what ?
Hi Tushar. I have explained the entire routing along with use cases in detail in Angular 10 series. Please follow along ruclips.net/video/xuB4o5tGv7A/видео.html
Hi Prajjwal. Can you try checking the Angular 10 tutorial - may be it will answer few questions that you have. ruclips.net/video/c-WqaWqDLms/видео.html
Hi Sridhar
Just want to applaud you for your immense service to nation.
These tutorials will surely make it possible for many to learn and earn🙏
Thank you so much Navneet. Ur comments and support mean a lot 🙏
Thanks for replying all of our comments/Queries.
My pleasure!
Good. Please see how you can increase your volume. Even I kept 100 % volumne, but some words are not audible
Sure Senthil. Thanks for your feedback. Will try and improve upon in upcoming videos.
Angular 9 Tutorial For Beginners #29 - Routing Strategies
Angular having 2 types of routing strategies - PathLocationStrategy (default) , HashLocationStrategy (we will see # in the url)
1. This is extremely important
2. \home \dashboard, \search?keyword=k1, /product, /product/10, /product/10/details, /product?search=param
3. We can create our own strategy there is no strategy. By default, PathLocationStrategy
4. We need to add this in Providers of our module
app.module.ts
providers: [
{ provide: LocationStrategy, useClass: HashLocationStrategy }
],
Thanks Srini for capturing the notes. Regards Sridhar
Sir all your video are veryhelp full but some video had very low audio.. So please concern about that, thank you
These notes which you making, this looks really very helpful. Is it shared anywhere? Can I please get it.
thank you for the wonderful work you are doing.
Sure Abhilash. pls drop me a note at soorya.aaradhya@gmail.com
Can you explain the Pro's and con's of each strategy? and what is advantage of each. that is not explained well
Sure Ramya. Will cover these points soon in a new tutorial. Thanks Sridhar
I was thinking about this same question
Please, provide your ppt presentations. those will help us to re-collect what we have learnt so far. thank you :)
Will do soon. Regards Sridhar
Hi, nice video. One thing, if my URL's have '#' it has consequencies in SEO or google robot? The thing is when I upload my project in my hosting and if I refresh page it shows a 404 not found error but with HashLocationStrategy it's solves. But I do not really like, you cannot change # for something else at least?
No buddy. Unfortunately we cannot change the # thing. Its either path or hash. I know a lot hosting providers will not support path directly. But using Hash wont have any problem in SEO. So don't worry about that thing.
@@ARCTutorials Ok thanxs!
How to handle the pathlocationstrategy in production deployed angular application?
Thanks for your videos
We are pressing our earphones to hear 👂 your voice
It seems like you making videos in fear mode 😃
Ha ha ah ah. Buddy I have got better quality videos on Angular 10 series with much more details. Please find them here ruclips.net/video/Fg4spR6cdBQ/видео.html
Hi , how to get same data selected on earlier page after we come back to that page using back button?
Sir ur tutorial I am following. But please do videos on NGRX and RXJS . Interviewers are asking them very badly
Sure Deepak. Will do
As I learned from internet
When we deploy angular application into production server, we need to apply hasing strategy, If we use pathlocationstrategy ,then 404 errors will come. But why this 404 errors will occur
What is the exact reason for that,can you please explain here.
which one & when to use?
Hi sir please I need some help on angular (web workers)?
I have a method that interact with the backend and it take a long time to execute from 1 hour to 3, and I need to use web worker to keep this method running in the background and keep the user use the all entire application like normally until the method terminate it's process and display an alert to notify the user.
Thanks sir in advance.
Most important question I have you didn't explain in the video. what is the difference between Hash and Path Strategies. Which kind of scenarios need what ?
Hi Sridhar, Could you please share the ppts that @Prakash Kolluru requested. Regard, Manas
Please make a video on bazel
Sure Sudesh. Will cover it as well
but in which case we use path location strategy or hash location strategy
Hi Tushar. I have explained the entire routing along with use cases in detail in Angular 10 series. Please follow along ruclips.net/video/xuB4o5tGv7A/видео.html
Sir, # not showing in url after apply hash location strategy..
Also it is not give any error????
Stop angular cli and again Re-compile. Then only it will work correctly. Try it and let me know 👍
@@ARCTutorials no sir...its not working even after re compilation
@@jiteshjoshisde3154 facing the same problem bro . were you able to find a solution to it ??
what you want ? before learning your tutorial , you want i learn how to boost
volume in my lap ??
When using PathLocationStrategy, it shows # in browser page. I didn't get what's the difference in both.
It should not show you # when using pathLocationStrategy. Only in haslocationstrategy it should show #
Also difference is when using multiple single page apps it comes handy
@@ARCTutorials Thank you
How to stay in same page when click browser refresh.
Hi Raju. To stay in same page, we will use "#" in the links for clicks and call corresponding function for the same in component class.
You've not explained why to use one or the Strategy. That's the main thing!!!! Please explain this.
Sure I will cover it again and explain in detail. Thanks for your feedback.
You did not tell what are the differences in both the strategies?
Hi Ahmad. I have covered the output of 2 strategies. Pls try and let me know if any isues. Thanks Sridhar
Your volume is too low
apparently i didnt see any change on my webpage
The default mode is PathLocationStrategy that's why you didnt see any change. Its good to know what and how things work!!!
increase volume, too less irritating
Sure Prasanth. Thank you for your feedback. Will improve upon in future videos. Thanks again 👍
This everybody can understand, you could have explained pros and cons. I just wasted my 10 minutes
Hi Prajjwal. Can you try checking the Angular 10 tutorial - may be it will answer few questions that you have. ruclips.net/video/c-WqaWqDLms/видео.html
@@ARCTutorials Thank you
ur voice slow nd u only teach theortical not teach in pratical plzz tell to pratical also
too much repetition of same thing again and again.
Hi zaman. Thanks for your feedback. I am trying to improve as we go along. Thank you