How to handle the pathlocationstrategy in production deployed angular application?
@sreenuksr4 жыл бұрын
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 } ],
@ARCTutorials4 жыл бұрын
Thanks Srini for capturing the notes. Regards Sridhar
@xToJuKz4 жыл бұрын
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?
@ARCTutorials4 жыл бұрын
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.
@xToJuKz4 жыл бұрын
@@ARCTutorials Ok thanxs!
@SenthilMuthiah4 жыл бұрын
Good. Please see how you can increase your volume. Even I kept 100 % volumne, but some words are not audible
@ARCTutorials4 жыл бұрын
Sure Senthil. Thanks for your feedback. Will try and improve upon in upcoming videos.
@Trending_Shorts_Latest3 жыл бұрын
Hi , how to get same data selected on earlier page after we come back to that page using back button?
@mycontent47412 жыл бұрын
Hi Sridhar, Could you please share the ppts that @Prakash Kolluru requested. Regard, Manas
@jiteshjoshisde31544 жыл бұрын
Sir, # not showing in url after apply hash location strategy.. Also it is not give any error????
@ARCTutorials4 жыл бұрын
Stop angular cli and again Re-compile. Then only it will work correctly. Try it and let me know 👍
@jiteshjoshisde31544 жыл бұрын
@@ARCTutorials no sir...its not working even after re compilation
@justicekwakyeasare85893 жыл бұрын
@@jiteshjoshisde3154 facing the same problem bro . were you able to find a solution to it ??
@ChroniclesinEnglish3 жыл бұрын
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.
@ramyaravichandran2792 жыл бұрын
Sir all your video are veryhelp full but some video had very low audio.. So please concern about that, thank you
@rajivraghu98573 жыл бұрын
which one & when to use?
@ramyaraj104 жыл бұрын
Can you explain the Pro's and con's of each strategy? and what is advantage of each. that is not explained well
@ARCTutorials4 жыл бұрын
Sure Ramya. Will cover these points soon in a new tutorial. Thanks Sridhar
@yusbelydelgado6813 жыл бұрын
I was thinking about this same question
@tusharmittal44433 жыл бұрын
but in which case we use path location strategy or hash location strategy
@ARCTutorials3 жыл бұрын
Hi Tushar. I have explained the entire routing along with use cases in detail in Angular 10 series. Please follow along kzbin.info/www/bejne/rqalZaJrqaypbaM
@navneet49973 жыл бұрын
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🙏
@ARCTutorials3 жыл бұрын
Thank you so much Navneet. Ur comments and support mean a lot 🙏
@mrudangdalal2 жыл бұрын
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 ?
@sudeshkodavoor5484 жыл бұрын
Please make a video on bazel
@ARCTutorials4 жыл бұрын
Sure Sudesh. Will cover it as well
@abhilash4383 жыл бұрын
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.
@ARCTutorials3 жыл бұрын
Sure Abhilash. pls drop me a note at soorya.aaradhya@gmail.com
@vaishnavikale7133 жыл бұрын
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.
@venkats26454 жыл бұрын
When using PathLocationStrategy, it shows # in browser page. I didn't get what's the difference in both.
@ARCTutorials4 жыл бұрын
It should not show you # when using pathLocationStrategy. Only in haslocationstrategy it should show #
@ARCTutorials4 жыл бұрын
Also difference is when using multiple single page apps it comes handy
@venkats26454 жыл бұрын
@@ARCTutorials Thank you
@kolluruprakash4 жыл бұрын
Please, provide your ppt presentations. those will help us to re-collect what we have learnt so far. thank you :)
@ARCTutorials4 жыл бұрын
Will do soon. Regards Sridhar
@rajunaga47164 жыл бұрын
How to stay in same page when click browser refresh.
@ARCTutorials4 жыл бұрын
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.
@ahmadfaraz36784 жыл бұрын
You did not tell what are the differences in both the strategies?
@ARCTutorials4 жыл бұрын
Hi Ahmad. I have covered the output of 2 strategies. Pls try and let me know if any isues. Thanks Sridhar
@_Rohit_Kumaar3 жыл бұрын
what you want ? before learning your tutorial , you want i learn how to boost volume in my lap ??
@konadeepak94434 жыл бұрын
Sir ur tutorial I am following. But please do videos on NGRX and RXJS . Interviewers are asking them very badly
@ARCTutorials4 жыл бұрын
Sure Deepak. Will do
@Funimation983 жыл бұрын
Your volume is too low
@HVSharma4 жыл бұрын
You've not explained why to use one or the Strategy. That's the main thing!!!! Please explain this.
@ARCTutorials4 жыл бұрын
Sure I will cover it again and explain in detail. Thanks for your feedback.
@rajnish10023 жыл бұрын
Thanks for your videos We are pressing our earphones to hear 👂 your voice It seems like you making videos in fear mode 😃
@ARCTutorials3 жыл бұрын
Ha ha ah ah. Buddy I have got better quality videos on Angular 10 series with much more details. Please find them here kzbin.info/www/bejne/fJiXpKOIa8iXeLM
@jacksm87094 жыл бұрын
apparently i didnt see any change on my webpage
@ARCTutorials4 жыл бұрын
The default mode is PathLocationStrategy that's why you didnt see any change. Its good to know what and how things work!!!
@prashanthreddy72394 жыл бұрын
increase volume, too less irritating
@ARCTutorials4 жыл бұрын
Sure Prasanth. Thank you for your feedback. Will improve upon in future videos. Thanks again 👍
@prajjwalrao68483 жыл бұрын
This everybody can understand, you could have explained pros and cons. I just wasted my 10 minutes
@ARCTutorials3 жыл бұрын
Hi Prajjwal. Can you try checking the Angular 10 tutorial - may be it will answer few questions that you have. kzbin.info/www/bejne/mV66opSNpql_o9U
@rajivraghu98573 жыл бұрын
@@ARCTutorials Thank you
@dandamudidharani54063 жыл бұрын
ur voice slow nd u only teach theortical not teach in pratical plzz tell to pratical also
@khaleequzzaman15904 жыл бұрын
too much repetition of same thing again and again.
@ARCTutorials4 жыл бұрын
Hi zaman. Thanks for your feedback. I am trying to improve as we go along. Thank you