Sharing Data between Components in Angular

  Рет қаралды 500,841

Fireship

Fireship

Күн бұрын

Пікірлер: 374
@zlatanonkovic2424
@zlatanonkovic2424 5 жыл бұрын
0:07 parent => child - via Input() 0:42 child => parent - via Output() + EventEmitter 2:12 child => parent - via ViewChild() 3:01 Any => Any - via a shared service Thanks a lot for that great video!
@tariqboukouyen4841
@tariqboukouyen4841 5 жыл бұрын
Useful YO
@DividedStates
@DividedStates 5 жыл бұрын
awesome quick reference
@sivakumarg98
@sivakumarg98 4 жыл бұрын
😂 🤟🙏
@davidj5284
@davidj5284 2 жыл бұрын
It is a shame the content creator didn't think to do this. This is what makes great content. Indexing the f*ing thing.
@avinashsuresh5221
@avinashsuresh5221 3 ай бұрын
2:12 is really for parent to access its child(ren).
@squarebynature
@squarebynature 7 жыл бұрын
Best short, concise and to the point video on the internet about data cross communication in Angular, period. Thanks so much !!!
@Fireship
@Fireship 7 жыл бұрын
Thank you! Let me know if there are any other Angular topics you want to see on the channel.
@squarebynature
@squarebynature 7 жыл бұрын
more on observables inside Angular would be awesome!
@umka7873
@umka7873 6 жыл бұрын
need urgent explanation errorHandler!)) new Ng 6+
@beginner2expert
@beginner2expert 5 жыл бұрын
You can try this example as well: kzbin.info/www/bejne/b2bYnax8iJWYgtE
@MaDaaBre
@MaDaaBre 7 жыл бұрын
The best explanation I've seen for Angular. Helped me finally understand cross component communication once for all! Thank you!
@Fireship
@Fireship 7 жыл бұрын
thank you!
@silaslumba8111
@silaslumba8111 7 жыл бұрын
Body painting
@tayfoooooor
@tayfoooooor 7 жыл бұрын
Yup exactly all in one, simple explanation (Y)
@Legotron
@Legotron 6 жыл бұрын
Bank5z0rSqt absolutely it is! I had that AH-HA moment.
@MaylorTaylor
@MaylorTaylor 5 жыл бұрын
I agree with this comment.
@stevenskharisachaesquerre5080
@stevenskharisachaesquerre5080 Жыл бұрын
it's been 6 years and it's still helpful, thx for doing this
@elisolna
@elisolna 7 жыл бұрын
This is by far the *BEST EXPLANATION* about data sharing in angular, i'v seen a lot of videos about it, but no one explains it as simple and straightforward like you, Keep Up the good work mate!
@Fireship
@Fireship 7 жыл бұрын
Thank you!
@ibknl1986
@ibknl1986 6 жыл бұрын
One of the best training way. Not sure how but your voice + training video + methodology make it super clear. Great going
@davesharp5472
@davesharp5472 5 жыл бұрын
This channel in general has been the most helpful thing for me learning angular compared to anything else. I'll watch the same video 5 times to get all the info since there's no much packed in there but its clear and concise. Thank you for doing this.
@phuduc1193
@phuduc1193 7 жыл бұрын
I rarely comment anywhere but this is amazing.. fast, short, easy to understand and just on point. Thank you so much.
@Fireship
@Fireship 7 жыл бұрын
Thank you, I appreciate that!
@QuentinMayo
@QuentinMayo 3 жыл бұрын
Several years later, I'm still watching your videos. GreatjJob at summarising concepts! They really help remind me of concepts I forget
@hussain5755
@hussain5755 7 жыл бұрын
explaining is an art and this guy is the picasso of that art..kudos
@Fireship
@Fireship 7 жыл бұрын
Thank you! Hope to make more videos like this soon.
@patrickrossello9907
@patrickrossello9907 3 жыл бұрын
Two minutes to explain to me what I had been researching for hours. Cheers man
@abduljabbarazam943
@abduljabbarazam943 6 жыл бұрын
I've spent many hours looking for cross component communication in the angular docs. Giving up on that and using google I came across this video. I now understand it. Thank you.
@avinashsuresh5221
@avinashsuresh5221 3 ай бұрын
My preferred application architecture: 1. Global Context 2. Private Components 3. Shared services 4. Component interaction only through shared services 5. Shared services managed through one global context manager.
@jyothijyo7599
@jyothijyo7599 4 жыл бұрын
The simple and best tutorial on components communication.
@omri620
@omri620 3 жыл бұрын
This is GOLD, Your explanation is so straight forward and simple.
@nodarii
@nodarii 7 жыл бұрын
the secret of good video is in background music. Chill out and relax with so technical stuff :) Good job
@Fireship
@Fireship 7 жыл бұрын
+Nodarii Thank you! I have had mixed reviews about the music, so glad to hear you enjoy it.
@ibrahimmohammed3484
@ibrahimmohammed3484 7 жыл бұрын
i like listening to it too while he is coding xD
@scyyyy
@scyyyy 6 жыл бұрын
can you ID the background music it for me? I know it's a pretty short loop but anyways, sounds like amazing chill out I could listen to all day :D
@dumindudesilva083
@dumindudesilva083 5 жыл бұрын
I'm with Nodarii too. It's cool...
@diegomen
@diegomen 4 жыл бұрын
@@Fireship Very good explanation and the music for programming is great. What is the name of the artist and song? give some credit :)
@stefanoslalic2199
@stefanoslalic2199 6 жыл бұрын
Never stop what you are doing, you are genius
@legitimoth
@legitimoth 4 жыл бұрын
Your video was one of the best video that i have ever seen. Background sound, voice quality, direct to the point.. everything perfect dude.
@abhimalvekr127
@abhimalvekr127 4 жыл бұрын
Best component interaction video I found on KZbin. BGM is also on point. Kudos!
@saoudiwalid
@saoudiwalid 6 жыл бұрын
Short and straight to the subject, I loved it.
@johnragica1723
@johnragica1723 7 жыл бұрын
Thanks! The information in this video tutorial are very important to me as a newbee in angular. Liked and subscribed.
@jordantaylor8549
@jordantaylor8549 7 жыл бұрын
Wow amazing, very clear and you even put a quick step by step summary in the description . Also really like how u show the function of what you're about to make at the start of each video . Thank you for uploading ! I really appreciate the time and effort put into each of your videos .
@Fireship
@Fireship 7 жыл бұрын
+Jordan Thank you! Appreciate the feedback.
@JorgeAPMota
@JorgeAPMota 3 жыл бұрын
Definitely the best video on Angular communication between components I've seen, and better than that: concise! I've paid for much worst on learning platforms! Will pay more attention on your content! Thank you so much!
@DemonGolota
@DemonGolota 6 жыл бұрын
Really good explanation, short, direct to subject and using an example of the function.
@rayav1065
@rayav1065 6 жыл бұрын
This video really helped me a lot! Really like the last architecture with the service and observables!
@jonatacardoso6439
@jonatacardoso6439 7 жыл бұрын
BEST EXPLANATION about data sharing in angular!!
@Luis-ww5fl
@Luis-ww5fl Жыл бұрын
Very well explained! watched a lot of tutorials but none made it as simple as you did
@brandoncluff6696
@brandoncluff6696 7 жыл бұрын
This was great - the first time that Angular made sense to me. Thank you!
@isakgranqvist9306
@isakgranqvist9306 5 жыл бұрын
Great tutorial. The last example was exactly what I was looking for. Awesome!
@lertis_m
@lertis_m 6 жыл бұрын
Where is this video was before?? It is the most concise and informative video about the passing data between components in Angular, LIKE 😍
@mual77
@mual77 7 жыл бұрын
Thank you for this short, simple and straight to the point explanation.
@erwinmesi
@erwinmesi 6 жыл бұрын
Have just decided to watch all your videos from the beginning
@Fireship
@Fireship 6 жыл бұрын
Thank you for the feedback :)
@glacial_chinchilla
@glacial_chinchilla 6 жыл бұрын
This got me through a problem I've been tackling for two days. Big thanks!
@architadesai7876
@architadesai7876 6 жыл бұрын
Thank you so much for this explanation. Yours is the best channel on Angular!
@asifkarimbherani6386
@asifkarimbherani6386 7 жыл бұрын
Best video on angular so far, Concise and to the point!! Thank You
@Fireship
@Fireship 7 жыл бұрын
Thank you!
@neroprox
@neroprox 6 жыл бұрын
For all using angular 5. Remember to import the DataService and set is as a provider in your module. like this: ...... import { DataService} from './data-service'; @NgModule({ declarations: [ AppComponent, ConversationComponent, CanvasComponent ], imports: [ BrowserModule, FormsModule ], providers: [DataService], bootstrap: [AppComponent] })
@dadandgirls7306
@dadandgirls7306 2 жыл бұрын
Thanks, that's the piece I was missing. Note that in my case, the import was slightly different than what you show: import { DataService} from './data.service';
@prasadchaugule
@prasadchaugule 7 жыл бұрын
This is what exactly I was looking for. Very nicely explained. Thanks!
@sudarshanadayananda709
@sudarshanadayananda709 6 жыл бұрын
Best Angular tutorial Which teach more in short time....Thanks
@heenachoudhary9091
@heenachoudhary9091 5 жыл бұрын
Simple and short explanation of the concept.. Thankyou for making such a informative video.
@HusseyCarl
@HusseyCarl 7 жыл бұрын
You should really consider a doing course on angular basics, paid even. - I think your explanations are great and this was very easy to understand. I have watched this a few times now when I get stuck looking for the best way to communicate. I also like the music :)
@Fireship
@Fireship 7 жыл бұрын
Thanks for the feedback! I am actually working on an end-to-end course that should be ready in 2 to 3 weeks from now, so stay tuned for that.
@saikiranmarripati7743
@saikiranmarripati7743 5 жыл бұрын
@@Fireship is the course ready yet?
@gauravlal9800
@gauravlal9800 4 жыл бұрын
Wow... what a clear and straight-forward information.... one of the excellent video over web... Excellent work! Thanks for sharing... :)
@TerjeNesthus
@TerjeNesthus 5 жыл бұрын
This is really cool, just what I would need to update my navbar component to indicate changes done in another component.. thanks for making this
@RafaelFerreira182
@RafaelFerreira182 4 жыл бұрын
Is it a good approach to do unsubscribe in ngOnDestroy of all components that are doing subscribe to get the current message?
@brianfabrizio4676
@brianfabrizio4676 6 жыл бұрын
Absolutely stellar video. Literally saved me from the design corner I had seemingly backed myself into.
@eliasrodas7336
@eliasrodas7336 7 жыл бұрын
Awesome video!! Really helped me understand what I was missing! Thank you very much!!
@sumangeorge7
@sumangeorge7 4 жыл бұрын
one of the best videos on data sharing... it took me around an hour to implement everything and test though :)
@ITBackup-ob5td
@ITBackup-ob5td 4 жыл бұрын
The best tutorial i have seen about this topic. Thanks.
@mgs_4k198
@mgs_4k198 6 жыл бұрын
Simplicity is a beautiful thing. Thank you
@nzjemountfort
@nzjemountfort 7 жыл бұрын
Finally. This was in the back of my mind since I started using angular. And you've answered my question about other ways to share data.
@marie-helenedelteil3382
@marie-helenedelteil3382 7 жыл бұрын
Thank so much !!! You are the best in the jungle of Angular videos...
@suhail_kc
@suhail_kc 2 ай бұрын
A short and clear explanation. Thank you.
@ParasBansal10
@ParasBansal10 7 жыл бұрын
Such quality! I loved your video. This is the best tutorial I have ever seen, to be honest. And I have seen thousands (on different technologies).
@Fireship
@Fireship 7 жыл бұрын
Wow, thank you! I hope to make more similar to this one :)
@Aliana9603
@Aliana9603 3 ай бұрын
Thanks, that was a quick and good refresher on data sharing in Angular!
@alexandersoltesz8103
@alexandersoltesz8103 5 жыл бұрын
Awesome video, easy to follow, clean and straightforward examples, solved the problem I've been working on perfectly!!
@krishnabala7359
@krishnabala7359 5 жыл бұрын
Really awesome .... You just connected to core of component communication concepts
@fewicharlie
@fewicharlie 6 жыл бұрын
This is amazing. I've been watching your videos since yesterday and I learn something new in each of them. Keep it up!!
@MartinPultz
@MartinPultz 6 жыл бұрын
You just blew my mind with the RxJS BehaviourSubject!
@akash.deep1001
@akash.deep1001 2 жыл бұрын
Short ,concise and Straightforward 🤞
@alfredopon7303
@alfredopon7303 5 жыл бұрын
Your videos are a treasure to watch! Thank you!
@Akshay-Malthane
@Akshay-Malthane 6 жыл бұрын
For background music i watched this video for several of times.. Please let me knw the name of that music
@siddharthbehra5250
@siddharthbehra5250 3 жыл бұрын
God bless you and your family. The explanation along with the background music was great. So helpful. :) Appreciate the great work man, keep it up!
@inobrega
@inobrega 7 жыл бұрын
Many Kudos to this tutorial! Love this BG music... relaxing!
@beginner2expert
@beginner2expert 5 жыл бұрын
You can try this example as well: kzbin.info/www/bejne/b2bYnax8iJWYgtE
@ibrahimmohammed3484
@ibrahimmohammed3484 7 жыл бұрын
savior as always, i keep coming back to this for a reminder
@StephenMoreira
@StephenMoreira 7 жыл бұрын
Wow this was great. Really good at breaking down the concepts to consumable bite sizes.
@kayldomaj6493
@kayldomaj6493 3 жыл бұрын
Perfectly clear, thank you. I didn't know about the rxjs way. Only thing is that you now need to import from 'rxjs' instead of 'rxjs/...'
@Ghaniballx
@Ghaniballx 7 жыл бұрын
Why assign BehaviourSubject instance to a new public property? I mean this line(3:40 in video): > currentMessage = this.messageSource.asObservable(); Isn't "messageSource" already an observable?
@Fireship
@Fireship 7 жыл бұрын
Good question. That's actually a "best practice" to prevent new values being pushed to the BehaviorSubject from outside the service. Completely optional though.
@pradeepkumarnm7127
@pradeepkumarnm7127 7 жыл бұрын
( my self being newbie to angular) ...Amazing.... tutorial... Am I the only who took more than 15 min to capture and understand. Really gives some work to brain apart from just seeing
@bodasandeepkumar4234
@bodasandeepkumar4234 3 жыл бұрын
tons of knowledge in just 5 mins. thanks a lot !
@hiddenNinja_KD
@hiddenNinja_KD 7 жыл бұрын
Nice tutorial for communicating among components! :) It gave me new ideas for implementing sessions, thumbs up!
@Fireship
@Fireship 7 жыл бұрын
Thank you, good luck with your project.
@saptarshimandal9370
@saptarshimandal9370 6 жыл бұрын
Best explanation till now . Thanks a lot!!!
@georgehuman7253
@georgehuman7253 5 жыл бұрын
Great structural explanation. Simple and clear examples. Good job! Thanks!
@marlenehasslinger2126
@marlenehasslinger2126 5 жыл бұрын
Thanks so much for this video! It made everything very clear in just a little over 5 minutes
@TopHDToonZ
@TopHDToonZ 6 жыл бұрын
Straight to the point and everything works flawlessly. Thank you so much.
@KumananMurugesan
@KumananMurugesan 7 жыл бұрын
Very nice explanation of data sharing between componenrs. Thank you.
@deborahjamesmathew
@deborahjamesmathew 4 жыл бұрын
thank you so much !!! Was able to subscribe to shared data in a service from multiple components.
@Shree79124
@Shree79124 6 жыл бұрын
After 1 year experience in Angular , now I can understand how Subject Behavior exactly works
@icasemobileservicecenter3293
@icasemobileservicecenter3293 5 жыл бұрын
how to child => parent don't need Output() + EventEmitter?
@AdityaSawant-bk7dd
@AdityaSawant-bk7dd 2 жыл бұрын
Great tutorial. The last example was exactly what I was looking for. you saved me thanks🤩
@BodyAli96
@BodyAli96 3 жыл бұрын
thanks of making my day with angular easier ❤️
@DividedStates
@DividedStates 5 жыл бұрын
0:37 always the same when people are explaining this, they use the same name and than you have something like [message] = "message". and that is then references without brackets or quotation marks somewhere else and you have a hard time, which to put in curly brackets in the child. 4:38 Here again: is this 'data' and 'DataService' your name for the service or a rule? when you write "this.data." it refers to the name of the service which is called data.service, right? And when you write DataService it is a predefined name like component or onInit? How do you handle multiple services.
@gdtrombetti
@gdtrombetti 7 жыл бұрын
I feel like I can't thumbs up this video enough. Thank you very much !
@LOOTS243
@LOOTS243 6 жыл бұрын
use two fingers instead. works every time
@Jopie65
@Jopie65 7 жыл бұрын
The last example caused a leak! The subscription was *not* captured and unsubscribed on component destruction. It's better to avoid explicit subscription from typescript code and let Angular manage subscriptions itself by using the async pipe in the template.
@inspireantonio
@inspireantonio 7 жыл бұрын
Best tut video ever! Clear and concise.
@achrafelkhandouli
@achrafelkhandouli 4 жыл бұрын
all my headaches gone in one video, great content!
@nickbunich3165
@nickbunich3165 3 жыл бұрын
Great stuff i really liked the format! I think it might makes sense to add ng-content to the list
@Felix-og7pd
@Felix-og7pd 2 жыл бұрын
parent - child (input) child - parent (output + eventEmitter) any - any (rxjs)
@Childofaking4eva
@Childofaking4eva 6 жыл бұрын
You deserve way more subscribers. But with time and your continued effort I believe you'll get there. Very good content!
@atakandurkal2400
@atakandurkal2400 2 жыл бұрын
That is a great video very clear and well explained . Liked it !!
@RS3helper
@RS3helper 3 жыл бұрын
Great video, i wish this would have covered component and state store
@jitujahagirdar613
@jitujahagirdar613 6 жыл бұрын
Really Nice and quick video. Exactly i was looking for same. Thanks You..! for this super video. Really like it.
@petermen9914
@petermen9914 3 жыл бұрын
It's 2021 but that was exactly what I need
@mtsurov
@mtsurov 5 жыл бұрын
where can i get this soundtrack ? I'm addicted to it . Seriously, it helps me study more than you know.
@beginner2expert
@beginner2expert 5 жыл бұрын
You can try this example as well: kzbin.info/www/bejne/b2bYnax8iJWYgtE
@SachalChandio
@SachalChandio Жыл бұрын
you are awesome can you also talk about signals and effects and new things in angular like standalone components that makes things easier
@danpride2804
@danpride2804 6 жыл бұрын
This is an absolutely awesome presentation.
@gokhanozturk8420
@gokhanozturk8420 5 жыл бұрын
perfect explanation. short & clean. thanx.
@imhappynow8471
@imhappynow8471 5 жыл бұрын
thank you for making this video 5 minutes and not 30 boring minutes lol. make more loved it
@anilwagh235
@anilwagh235 5 жыл бұрын
Really good short and concise
@gurpritsingh5741
@gurpritsingh5741 6 жыл бұрын
Clear and concise explanation. Thank you.
@carolinavega159
@carolinavega159 7 жыл бұрын
Awesome! This helped me a lot, thank you!
@orlandogarcia4403
@orlandogarcia4403 4 жыл бұрын
2020 and I still love this video with the background music :3
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
OBSERVABLES, OBSERVERS & SUBSCRIPTIONS | RxJS TUTORIAL
17:40
Academind
Рет қаралды 584 М.
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,6 МЛН
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 904 М.
RxJS Top Ten - Code This, Not That
14:44
Fireship
Рет қаралды 256 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
@Output and EventEmitter in Angular | Angular Tutorial
6:15
WebGentle
Рет қаралды 30 М.
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 106 М.