Yo man Im doing my final year final project of angular web app and angular ionic mobile app and only found this channel now. IF i found this channel 6 months back i myt be an angular pro by now XD. Keep up the good work man your videos are interesting and covers almost all difficulties we face in angular. And i also shared this channel among my friends who are doing angular projects as a thanks for these great videos!!
you are just refreshing the table by using get all method...hence you are loading all the data once again, which is not correct in real world scenario, please correct me if I'm wrong.
There is the other approach we can include last inserted record into the array then it will reflect in UI. I followed this approach in my ngrx video. If you have limited records you can directly call. If records are high then performance issue will come
Almost yes. If something in the same components directly we can call. Action in once components but need to call getall in different components need to use observable
Bro one small suggestion pls increase ur voice little bit bro so many videos using headphones too ur sound cant reach us so pls from ur next videos increse ur voice little bit more then only can learn ur video without using headphone .thank you for all ur efforts
Hi My data are coming from db side.. I want both DB and angular table to be in sync, so any changes happened in db it should reflect in angular table immediately. Can I use the same implementation which you showed in this video. Also one more question when I am refreshing the page from browser button it not loading, it is showing white blank page for all pages. Why it is.? Pls clear my both doubts
@@NihiraTechiees I followed the same steps to get updated data but it is not coming.. After I switch to another tab and come back then it is updating... I was updating one column value in db side and was checking in angular web page...
But bro, you dont need to do that, you directly can use a Promise, and avoid to create a extra observable to subscribe and call getAll(), because now also you need to unsusbscribe...soo why are you doing in this way?
Thank you for the explanation Sir. But, I am getting "ERR _INSUFFICIENT_RESOURCES" after subscribing to the RefreshNeeded declared in my service. Any thoughts??
@@NihiraTechiees Thank you Sir. Identified the root cause... I am getting the response to an array variable. Now, I changed to observable. Its working now. But the problem is that, during edit, I am getting the data from database to the respective controls. Now, on page load by default all "select" components show the first data. Is this the default behaviour Or can i still map the data to the respective controls for editting?
Select control should show exact value. If it's choosing first one selected. Then check your api return the exact value and select control option value
Observable is one of the rxjs feature for hold and transmit the data to different receiver. For getting data from observable your to subscribe or topromise it
@@NihiraTechiees ok it will help me a lot please help. The main problem in our project is that all the routings we used are hash routing but for one controller we need to implement path location routing and is there a way to implement both at a time?
Yo man Im doing my final year final project of angular web app and angular ionic mobile app and only found this channel now. IF i found this channel 6 months back i myt be an angular pro by now XD. Keep up the good work man your videos are interesting and covers almost all difficulties we face in angular. And i also shared this channel among my friends who are doing angular projects as a thanks for these great videos!!
Thanks for your wonderful words. It's the energy booster for us
you are just refreshing the table by using get all method...hence you are loading all the data once again, which is not correct in real world scenario, please correct me if I'm wrong.
There is the other approach we can include last inserted record into the array then it will reflect in UI. I followed this approach in my ngrx video.
If you have limited records you can directly call. If records are high then performance issue will come
Man, shrink that video to Subscribtion and you'll help millions. :D
👍
I don't have any get all method that get all values getting from service how will call in init..??
What is your actual requirement please share to mail
This code is terrible, where do you unsubscribe from your observables?
From ondestroy hook need to unsubscribe
Your code hurts my eyes, can't you format or write code in a clean way.
Will include in future videos
Thank you so much sir. can you make video on angular file download from aws s3 bucket.
I will try
Why didn't you convert your fetch data by code http request into a promise. After that you could have call it on every refresh
I tried to explain promise also in this video that's it. If you watch the full video you will get
Compare with call method getall again?
Almost yes. If something in the same components directly we can call. Action in once components but need to call getall in different components need to use observable
How to update view with new values without hitting the database to GetAll?
When it need to be update? I mean which event
@@NihiraTechiees i meant we updated the data it should reflect on the view without hit GetAll() again. May be like using BehaviorSubject ??
Can you please make some videos on ngrx state management
Sure, will cover on upcoming weeks
neenga veramari broo this error ah nan 2 days ah solve panna try pantr but ur the greate .. nandri anna
Glad to hear brother 🤝
19:54 But this way we have multiple subscribe as GetAll() service?
Wouldn't it be more correct to unsubscribe first?
You are correct, need to unsubscribe
Bro one small suggestion pls increase ur voice little bit bro so many videos using headphones too ur sound cant reach us so pls from ur next videos increse ur voice little bit more then only can learn ur video without using headphone .thank you for all ur efforts
Sure👍
Oh its very important video with a good explanation but how i was missed it.
It's created earlier days
Hi
My data are coming from db side.. I want both DB and angular table to be in sync, so any changes happened in db it should reflect in angular table immediately. Can I use the same implementation which you showed in this video.
Also one more question when I am refreshing the page from browser button it not loading, it is showing white blank page for all pages. Why it is.?
Pls clear my both doubts
Yes you can follow same steps for your video.
Your 2nd question regarding blank screen it may comes bcz some error. Could you check the console
@@NihiraTechiees I followed the same steps to get updated data but it is not coming.. After I switch to another tab and come back then it is updating... I was updating one column value in db side and was checking in angular web page...
But bro, you dont need to do that, you directly can use a Promise, and avoid to create a extra observable to subscribe and call getAll(), because now also you need to unsusbscribe...soo why are you doing in this way?
Promise is outdated in latest versions
Now you have to use firstValueFrom() to get a promise, but it doesn't answer the question
Very useful video for dynamic refreshing. Thank you so much
Welcome🎉
The required refresh implementation is awesome! God bless you!
Thanks🙏
Thank you for the explanation Sir. But, I am getting "ERR _INSUFFICIENT_RESOURCES" after subscribing to the RefreshNeeded declared in my service. Any thoughts??
I believe you missed something could you crosscheck with GitHub source code
@@NihiraTechiees Thank you Sir. Identified the root cause... I am getting the response to an array variable. Now, I changed to observable. Its working now. But the problem is that, during edit, I am getting the data from database to the respective controls. Now, on page load by default all "select" components show the first data. Is this the default behaviour Or can i still map the data to the respective controls for editting?
Select control should show exact value. If it's choosing first one selected. Then check your api return the exact value and select control option value
Wow.HatsOff Brother.What an Excellent stuff.All Angular Lessons are really great.Fantastic Bro.God Bless you.
Thanks for the support 👍
Great explanation. Thank you so much.
Thanks for the wonderful words👍
In simple words what is mean observable and promise
Observable is one of the rxjs feature for hold and transmit the data to different receiver.
For getting data from observable your to subscribe or topromise it
is it possible to implement pathlocationstrategy and hashlocationstrategy in a project at time?
Let me check
@@NihiraTechiees ok it will help me a lot please help. The main problem in our project is that all the routings we used are hash routing but for one controller we need to implement path location routing and is there a way to implement both at a time?
this is very junior way, just use NGRX and that's it :)
🙏
Why use ngrx for form simple?
WOWOWWOWOWOWOWOW!. You saved my project.
Great to see👌
thank you it really helped me!
Thanks