How to Share Data Between Components in Angular | Passing Data From One Component to Another

  Рет қаралды 89,193

The Good Code

The Good Code

Күн бұрын

In this video, I have covered different methods for sharing data between Angular components. I have covered three cases:
Case 1: Parent to Child: via Input
Case 2: Child to Parent: via Output() and EventEmitter
Case 3: Unrelated Components: via a Service
Subscribe to this channel: / @thegoodcode
Check Out My other videos as well:
Create Animated Particles Background In Angular 8 (2020) | Angular-particle Library | Particles.js - • How To Create Animated...
Animated Circular Progress Bar Graph In Angular (2020) | Circular Percentage Chart | For Beginners - • How To Create Animated...
First Angular-9 Application in Two minutes (2020) | Installing NodeJS | Installing Angular-CLI - • How To Create First An...
SEO stuff :
angular 9 component communication ,angular 9 parent-child communication ,angular 9 nested component communication ,angular 9 route parameters ,angular 9 input properties ,angular 9 template reference variable ,angular 9 required route parameters ,angular 9,optional route parameters ,angular 9 query params ,angular 9 sharing data between components ,angular 9 output property ,angular 9 component interaction ,angular ,angular 9 ,angular 9 ,webdev ,app development ,typescript ,javascript ,lesson ,tutorial ,data sharing ,service injection ,

Пікірлер: 80
@midnightsun8428
@midnightsun8428 Жыл бұрын
I watched 4-6 videos of this sibling data sharing. None of them work, but your video did it. You got one more subscriber
@vikaskumarmishra4353
@vikaskumarmishra4353 4 жыл бұрын
guys dont judge the video by view its really excellent tutorial
@TheGoodCode
@TheGoodCode 4 жыл бұрын
Glad you liked it!
@Shreekrushna2001
@Shreekrushna2001 2 жыл бұрын
Excellent videos can not get good views because its true videos
@shushanbalayan6267
@shushanbalayan6267 4 жыл бұрын
Thank you, don't give it up! Keep going and share new, helpful tutorials!!!
@shubhamrawat3984
@shubhamrawat3984 2 жыл бұрын
Helped me in implementing a feature in my job at a startup, Thanks a ton!
@TheGoodCode
@TheGoodCode 2 жыл бұрын
Tumhaare liye hi toh banaya hai video! Glad it helped 😁😁
@santoshkamat3957
@santoshkamat3957 2 жыл бұрын
Thank you so much for sharing the knowledge in the simplest form ever!
@moinamaankhan3054
@moinamaankhan3054 2 ай бұрын
Excellent Tutorial ! Just a kind request to remove the background music so that the tutorial would be easy to listen to.
@MrAsgar123
@MrAsgar123 4 жыл бұрын
Thank you so much for your easy, lovely and clear explanations.
@freeWheelers907
@freeWheelers907 Жыл бұрын
Awsome explanation🎉 Keep posting videos like this..💣
@mauricew2142
@mauricew2142 3 жыл бұрын
Very helpful video, thanks much! Hope you make more videos in the future!
@tester6821
@tester6821 2 жыл бұрын
🙌🙌🙌 bro you are hero for me life saver thank you so much ❤️
@hamzarauf320
@hamzarauf320 2 жыл бұрын
Thank you soo Much For choosing sooo Much Easy way
@swapnilkumar6852
@swapnilkumar6852 3 жыл бұрын
CONCISE! TO THE POINT! GREAT EXPLAINATION!
@TamFbs
@TamFbs 2 жыл бұрын
Great explanation
@sergi7687
@sergi7687 4 жыл бұрын
THANK YOU SO MUCH! It helped a lot!
@hamzarauf320
@hamzarauf320 2 жыл бұрын
Bundle of Thanks😍
@kartikeyasingh2798
@kartikeyasingh2798 2 жыл бұрын
nice explanation
4 жыл бұрын
Good tutorial
@raghavendrakesari337
@raghavendrakesari337 2 жыл бұрын
thankks bro
@sarangbhople403
@sarangbhople403 4 жыл бұрын
Bro Video is so good But why music is there is background it distracting focus...
@TheGoodCode
@TheGoodCode 4 жыл бұрын
Music is there to hide my background noise!😜 Since I don't have a studio or anything 🙈 sorry about the distraction though!
@iroshanaravishan1388
@iroshanaravishan1388 2 жыл бұрын
Wow it works..👏🙌🤩
@TheGoodCode
@TheGoodCode 2 жыл бұрын
Ofcourse it works 😂😂
@osamamalik3290
@osamamalik3290 3 жыл бұрын
Thank you
@ashiqdey
@ashiqdey 3 жыл бұрын
Good content bro, keep uploading
@sidduhedaginal
@sidduhedaginal 4 жыл бұрын
very helpful information, thanks for sharing knowledge.
@shanmugapriya7398
@shanmugapriya7398 3 жыл бұрын
Hi bro , please cover all the topics in angular...Just liked the way of teaching , its simple and efficient..Expecting more contents...Thanks in advance :)
@TheGoodCode
@TheGoodCode 3 жыл бұрын
I am glad you liked the tutorial!! Appreciate your feedback! Thank you 😊
@DINESHKUMAR-yq5gr
@DINESHKUMAR-yq5gr 3 жыл бұрын
@@TheGoodCode yes, I am also expecting single video for full angular concept
@DINESHKUMAR-yq5gr
@DINESHKUMAR-yq5gr 3 жыл бұрын
@@TheGoodCode how to resolve CORS issue in angular and API side?
@maheshkarpenter7616
@maheshkarpenter7616 2 жыл бұрын
thank u so much
@samiksha7937
@samiksha7937 3 жыл бұрын
Nice and helpful video.
@chayanikachaudhury7219
@chayanikachaudhury7219 3 жыл бұрын
Oh god helped me a lot ❤️
@TonyStark-qo5lz
@TonyStark-qo5lz 2 жыл бұрын
Awesome
@kumaravela6008
@kumaravela6008 3 жыл бұрын
In using the service, Why when getting the data from input field not working. The data is setting successfully but the data is not getting
@neelammajgaonkar8869
@neelammajgaonkar8869 4 жыл бұрын
Very nice
@TheGoodCode
@TheGoodCode 4 жыл бұрын
Thank you!
@kpopisbop6651
@kpopisbop6651 2 жыл бұрын
What if there is no child selector? What if we are using routing for accessing child? Then how to share data from child to parent?
@TheGoodCode
@TheGoodCode 2 жыл бұрын
Route parameters?
@kpopisbop6651
@kpopisbop6651 2 жыл бұрын
Yes
@pritammalwade8674
@pritammalwade8674 2 жыл бұрын
Your content is very good but Please don't add background music . Its bit annoying.
@himanshusahu8220
@himanshusahu8220 2 жыл бұрын
at 3:14 What is the meaning of $event?
@TheGoodCode
@TheGoodCode 2 жыл бұрын
$event is the default JS event. It's passed to a function in the ts file and then used there.
@aravindhsri1770
@aravindhsri1770 4 жыл бұрын
thanks bro...
@yuriinadilnyi3029
@yuriinadilnyi3029 3 жыл бұрын
the best!
@TheGoodCode
@TheGoodCode 3 жыл бұрын
Thanks a lot!! Please subscribe
@sreenivasulubusigari9266
@sreenivasulubusigari9266 3 жыл бұрын
could you remove background music , this is disturbing to concentrate
@humbertoestrada4215
@humbertoestrada4215 4 жыл бұрын
And if I want to get the value from a Python file ?
@sabitaojha8032
@sabitaojha8032 2 жыл бұрын
getmessage() is asking for agrument when we call it from component 2. please reply
@TheGoodCode
@TheGoodCode 2 жыл бұрын
Try following step by step from the tutorial, it should work
@paolotiboni9906
@paolotiboni9906 2 жыл бұрын
music too loud man, it s dusturbing me while i focus on your voice, ervything else really great !
@Akash-di5tb
@Akash-di5tb 2 жыл бұрын
I'm trying to send data from one child component to another child component , when I refresh another child where i passed data, I don't know, Why does the data go away?
@TheGoodCode
@TheGoodCode 2 жыл бұрын
Browser refresh?
@Akash-di5tb
@Akash-di5tb 2 жыл бұрын
@@TheGoodCode yes
@Akash-di5tb
@Akash-di5tb 2 жыл бұрын
@@TheGoodCode refresh browser when I'm in the child component
@TheGoodCode
@TheGoodCode 2 жыл бұрын
The only way to save data on browser refresh is to save it in cookies or local storage or API calls
@tester6821
@tester6821 2 жыл бұрын
🙌❤️
@dheerajpaladi7041
@dheerajpaladi7041 3 жыл бұрын
when i passed data from one component to another component via a service it is not showing any error but i am not getting data.May i know what could be reason .
@TheGoodCode
@TheGoodCode 3 жыл бұрын
Try following the exact steps mentioned and check
@Krizz23.
@Krizz23. 4 жыл бұрын
I have a table. When you press a button of a row in it, a dialog opens (pop-up), in it there is a form . I need that when the dialog opens, the information that is in the table is loaded into it. So I need to export the object of that row to the dialog and when closing the dialog that object is updated in the table . I couldn't import the row object to the dialog component from the table component Could you help me? I'm using this ¿Library? [ng.ant.design/docs/introduce/en] and Angular v10.0.8
@TheGoodCode
@TheGoodCode 4 жыл бұрын
Stackoverflow bro
@anatolytesler2875
@anatolytesler2875 4 жыл бұрын
Background music is disturbing! Went to look for another video.
@TheGoodCode
@TheGoodCode 4 жыл бұрын
Thanks for the feedback 🙌🏻
@abhishekdas1342
@abhishekdas1342 3 жыл бұрын
Can we pass any object instead of string with @Input
@TheGoodCode
@TheGoodCode 3 жыл бұрын
Yes we can
@harshilshah4677
@harshilshah4677 3 жыл бұрын
where are you, need more videos!!!!!!
@nielltalwar1574
@nielltalwar1574 2 жыл бұрын
why the background music brother. its totally distracting
@surajsidar2294
@surajsidar2294 Жыл бұрын
Background music is noisy. Why every youtuber adds background music at full volume? Test yourself by using earphone
@mahaahaadi
@mahaahaadi Жыл бұрын
use some animation and bit slow
@jayakumar2927
@jayakumar2927 4 жыл бұрын
Share the code
@sourabhkumarmahato9681
@sourabhkumarmahato9681 Жыл бұрын
pls remove the background music next time... its irritating
@stevenhenry746
@stevenhenry746 Жыл бұрын
Background Music is so annoying.
@rajmulherkar6894
@rajmulherkar6894 2 жыл бұрын
Please stop putting the background music on... it sounds so bad lmao
@TheGoodCode
@TheGoodCode 2 жыл бұрын
Noted xD
@shutter_buggies
@shutter_buggies 2 жыл бұрын
thank you so much
@yogeshi8431
@yogeshi8431 Жыл бұрын
Thanks you
@dilpreetkaur813
@dilpreetkaur813 Жыл бұрын
Thank you
8 Must Know JavaScript Array Methods
10:05
Web Dev Simplified
Рет қаралды 1 МЛН
Sharing Data between Components in Angular
5:19
Fireship
Рет қаралды 502 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Input Signals in Angular 17.1 - How To Use & Test
14:34
Decoded Frontend
Рет қаралды 33 М.
How to FETCH data from an API using JavaScript ↩️
14:17
Bro Code
Рет қаралды 188 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 81 М.
Passing data between components in angular
10:33
kudvenkat
Рет қаралды 116 М.
Angular Component Interaction - 14 - Using a Service
10:11
Codevolution
Рет қаралды 104 М.