Tap to unmute

Observable in Angular 13 | auto refresh after database update | communicate components using service

  Рет қаралды 29,927

Nihira Techiees

Nihira Techiees

Күн бұрын

Пікірлер: 61
@dinadinakaran1522
@dinadinakaran1522 2 жыл бұрын
neenga veramari broo this error ah nan 2 days ah solve panna try pantr but ur the greate .. nandri anna
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Glad to hear brother 🤝
@adalanane41
@adalanane41 Жыл бұрын
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!!
@NihiraTechiees
@NihiraTechiees Жыл бұрын
Thanks for your wonderful words. It's the energy booster for us
@vasilevictordurlesteanu2435
@vasilevictordurlesteanu2435 Жыл бұрын
The required refresh implementation is awesome! God bless you!
@NihiraTechiees
@NihiraTechiees Жыл бұрын
Thanks🙏
@suryaguthula6531
@suryaguthula6531 2 жыл бұрын
Wow.HatsOff Brother.What an Excellent stuff.All Angular Lessons are really great.Fantastic Bro.God Bless you.
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Thanks for the support 👍
@mhehar3yahoo
@mhehar3yahoo Жыл бұрын
Very useful video for dynamic refreshing. Thank you so much
@NihiraTechiees
@NihiraTechiees Жыл бұрын
Welcome🎉
@messengi
@messengi Жыл бұрын
19:54 But this way we have multiple subscribe as GetAll() service? Wouldn't it be more correct to unsubscribe first?
@NihiraTechiees
@NihiraTechiees Жыл бұрын
You are correct, need to unsubscribe
@jhonpilled
@jhonpilled Жыл бұрын
Great explanation. Thank you so much.
@NihiraTechiees
@NihiraTechiees Жыл бұрын
Thanks for the wonderful words👍
@VijayKumar-fq4ie
@VijayKumar-fq4ie Жыл бұрын
Oh its very important video with a good explanation but how i was missed it.
@NihiraTechiees
@NihiraTechiees Жыл бұрын
It's created earlier days
@erismeirishidalgoreyes656
@erismeirishidalgoreyes656 2 жыл бұрын
WOWOWWOWOWOWOWOW!. You saved my project.
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Great to see👌
@sohailamjad8755
@sohailamjad8755 2 жыл бұрын
Can you please make some videos on ngrx state management
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Sure, will cover on upcoming weeks
@utsavsharma2979
@utsavsharma2979 2 жыл бұрын
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
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
I tried to explain promise also in this video that's it. If you watch the full video you will get
@anushaakkerapu848
@anushaakkerapu848 11 ай бұрын
I don't have any get all method that get all values getting from service how will call in init..??
@NihiraTechiees
@NihiraTechiees 11 ай бұрын
What is your actual requirement please share to mail
@outingMaster
@outingMaster Жыл бұрын
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
@NihiraTechiees Жыл бұрын
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
@outingMaster
@outingMaster Жыл бұрын
@@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...
@dongaaa456
@dongaaa456 Жыл бұрын
Compare with call method getall again?
@NihiraTechiees
@NihiraTechiees Жыл бұрын
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
@laughandtune
@laughandtune Жыл бұрын
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.
@NihiraTechiees
@NihiraTechiees Жыл бұрын
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
@rakeshacharya8791
@rakeshacharya8791 2 жыл бұрын
is it possible to implement pathlocationstrategy and hashlocationstrategy in a project at time?
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Let me check
@rakeshacharya8791
@rakeshacharya8791 2 жыл бұрын
@@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?
@lakshminarasimharahobilam
@lakshminarasimharahobilam Жыл бұрын
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
@NihiraTechiees Жыл бұрын
I believe you missed something could you crosscheck with GitHub source code
@lakshminarasimharahobilam
@lakshminarasimharahobilam Жыл бұрын
@@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?
@NihiraTechiees
@NihiraTechiees Жыл бұрын
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
@mariembenfadhel3728
@mariembenfadhel3728 2 жыл бұрын
thank you it really helped me!
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Thanks
@onedev7316
@onedev7316 Жыл бұрын
How to update view with new values without hitting the database to GetAll?
@NihiraTechiees
@NihiraTechiees Жыл бұрын
When it need to be update? I mean which event
@onedev7316
@onedev7316 Жыл бұрын
@@NihiraTechiees i meant we updated the data it should reflect on the view without hit GetAll() again. May be like using BehaviorSubject ??
@Usertubcdhnvxhkn
@Usertubcdhnvxhkn 2 жыл бұрын
Thank you so much sir. can you make video on angular file download from aws s3 bucket.
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
I will try
@gladisxavier2430
@gladisxavier2430 2 жыл бұрын
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
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Sure👍
@Fadi.nouh88
@Fadi.nouh88 2 жыл бұрын
this is very junior way, just use NGRX and that's it :)
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
🙏
@dongaaa456
@dongaaa456 Жыл бұрын
Why use ngrx for form simple?
@sreeharinagireddy5371
@sreeharinagireddy5371 2 жыл бұрын
In simple words what is mean observable and promise
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
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
@leonnxrdx
@leonnxrdx 2 жыл бұрын
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?
@NihiraTechiees
@NihiraTechiees 2 жыл бұрын
Promise is outdated in latest versions
@leonnxrdx
@leonnxrdx 2 жыл бұрын
Now you have to use firstValueFrom() to get a promise, but it doesn't answer the question
@AlexeyHariton
@AlexeyHariton 8 ай бұрын
Man, shrink that video to Subscribtion and you'll help millions. :D
@NihiraTechiees
@NihiraTechiees 8 ай бұрын
👍
@fmorch
@fmorch Жыл бұрын
This code is terrible, where do you unsubscribe from your observables?
@NihiraTechiees
@NihiraTechiees Жыл бұрын
From ondestroy hook need to unsubscribe
@ReactWithSamwize
@ReactWithSamwize 8 ай бұрын
Your code hurts my eyes, can't you format or write code in a clean way.
@NihiraTechiees
@NihiraTechiees 8 ай бұрын
Will include in future videos
Subjects in RxJS | Observables | Angular 12+
16:14
procademy
Рет қаралды 58 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
"Refresh" observables | Angular Tips and Tricks
9:08
Code With Gio
Рет қаралды 40 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 221 М.
I only ever use *these* RxJS operators to code reactively
25:25
Joshua Morony
Рет қаралды 136 М.
Angular Crash Course | Learn modern Angular in 90 minutes
1:29:09
Code with Ahsan
Рет қаралды 48 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
RxJS, the easy way to write correct Angular applications
53:07
Oasis Digital
Рет қаралды 43 М.
Top 10 RxJs Operators in Angular [Angular Series]
25:06
David Acosta
Рет қаралды 120 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19