Angular Tutorial - 11 - Two Way Binding

  Рет қаралды 442,886

Codevolution

Codevolution

Күн бұрын

📘 Courses - learn.codevolu...
💖 Support UPI - support.codevo...
💖 Support PayPal - www.paypal.me/...
💾 Github - github.com/gop...
📱 Follow Codevolution
Twitter - / codevolutionweb
Facebook - / codevolutionweb
📫 Business - codevolution.business@gmail.com
Angular | Angular Tutorial for Beginners | Angular Two Way Binding

Пікірлер: 103
@msjazz0118
@msjazz0118 6 жыл бұрын
Thank you, Vishwas, for these great tutorials! I have started other "beginner" tutorials that have left me confused and with gaps in my knowledge of Angular that made it difficult to apply the concepts beyond that particular tutorial. You have explained Angular in a way that finally makes sense and filled in those gaps in my basic understanding of Angular concepts. Again, thank you so very much for putting these tutorials on KZbin for all to view!
@disha9876
@disha9876 5 жыл бұрын
I had never thought of [()] as , event + property binding's syntax way. Genius! This totally makes sense now.
@chagantisubhash
@chagantisubhash 6 жыл бұрын
I'm never going to make a syntactical mistake while writng ngModel directive after that Banana In a Box Analogy!!
@amberlum9166
@amberlum9166 6 жыл бұрын
A Banana inside a box, what a imaginative and super helpful hint!!!
@ikhiloyaimokhai9974
@ikhiloyaimokhai9974 6 жыл бұрын
That sticks very well
@diegodvs
@diegodvs 6 жыл бұрын
That is a mango not a banana
@shadow_3213
@shadow_3213 5 жыл бұрын
Since it's not so easy to get a box into a banana, that makes perfect sense to me :-)
@srikanth29
@srikanth29 4 жыл бұрын
It was mentioned in angular documentation.
@geomukkath5373
@geomukkath5373 3 жыл бұрын
Now I can never look at banana the same way.
@krishnachaitanya7349
@krishnachaitanya7349 4 жыл бұрын
First time, I am writing a thank you note in youtube. Your video with Githuhb is best combination to learn Angular 7. But first video need you to explain about Angular Architecture. I feel this need to be added. Else -> you are awesome, the best
@bahabelomgebremedhn2318
@bahabelomgebremedhn2318 4 жыл бұрын
thank you, Vishwas for those great tutorials. I will never make a syntactical mistake while writing ngModel directive after that Banana In a Box Analogy
@allnoyz7895
@allnoyz7895 6 жыл бұрын
Vishwas....You're making this way too easy.....Thanks!
@pol-dev-v5y
@pol-dev-v5y 4 жыл бұрын
I cannot stop commenting this videos, really good way to learn Angular.
@xGreenhero
@xGreenhero 3 жыл бұрын
it's really easy to understand these videos. Better than LinkedIn Learning courses.
@jorgecampoy9436
@jorgecampoy9436 6 жыл бұрын
I'm spanish and i can understand the videos very good, this videos are excelent.
@syedsameer382
@syedsameer382 4 жыл бұрын
smoothest explanation available on internet
@smachohalla
@smachohalla 3 жыл бұрын
You're an icon Mr. Vishwas!
@shadow_3213
@shadow_3213 5 жыл бұрын
Thank you very much for this series sir !!! This is the real deal if you want to learn Angular :-)
@urviljoshi9168
@urviljoshi9168 2 жыл бұрын
Helping me so much to learning angular .
@mindfulrelaxation2230
@mindfulrelaxation2230 4 жыл бұрын
Hi Vishwas what a great way of teaching ...great ** One suggestion ** You tube suggests other videos while watching you series , I think you have not marked your videos as series , please mark your playlist as series then youTube will suggest your videos only.
@MrRam0036
@MrRam0036 4 жыл бұрын
Property binding should be inside Square ex: [property]="name" , the event binding should be inside curly ex: (event)="getNames()" . if we mix together then it should be two-way binding that is curly inside square [( )] for clear ex : [(ngModel)]="name": Model to View [ ] =" property" ==> .ts file to .html file and View to Model (event)="getNames()" ==> .html file to .ts file vise versa. Overall Banana Inside a Box. [ (your |^| banana) ] .
@naturalrejects
@naturalrejects 6 жыл бұрын
Having issues with importing the FormsModule? In your application root try running, npm install @angular/forms.
@bruhaspati560
@bruhaspati560 6 жыл бұрын
thnxxx buddy!!!
@nahuelescobedo
@nahuelescobedo 4 жыл бұрын
u r the best
@soultouchingsongs
@soultouchingsongs 4 жыл бұрын
Vishwas, you are the best👏👍🙌
@arnavrajput3087
@arnavrajput3087 2 жыл бұрын
Thank you sir this is a very helpful information provided by you..
@mohdmuzaffarahmed4923
@mohdmuzaffarahmed4923 4 жыл бұрын
Best tutorial sir.. thanks
@altmm20
@altmm20 5 жыл бұрын
Hands Down! Get Angular tutorial on KZbin!
@mohansingh-wh8tp
@mohansingh-wh8tp 4 жыл бұрын
You are amazing .can't be expressed in words
@songlee8456
@songlee8456 6 жыл бұрын
5 🌟 again. Because of your Tuts, Google will have a bunch of new angular developers.
@KiranMarkad143
@KiranMarkad143 7 жыл бұрын
thanks ..very nice Explaination. plz upload next tutorials as soon as possible.
@naveenvenkatesh3222
@naveenvenkatesh3222 6 жыл бұрын
you made it simple .............fantastic tutorials......
@tejaspatelia8179
@tejaspatelia8179 5 жыл бұрын
Hi Vishwas, I've one question why don't we include NgModule in imports like BrowserModule. Can u pls answer?
@vamankumarpatel2652
@vamankumarpatel2652 4 жыл бұрын
great job sir thank you for this ...really helpful .
@mulasivajyothi8169
@mulasivajyothi8169 3 жыл бұрын
Thank you very much wonderful series sir It is easy to learn !!!
@amberlum9166
@amberlum9166 6 жыл бұрын
thank you so much for those GREAT videos!!!
@sm67873
@sm67873 2 жыл бұрын
Nice work thank you.
@SofianMW
@SofianMW 5 жыл бұрын
great tuto thanks!
@kishoreandukuri7819
@kishoreandukuri7819 6 жыл бұрын
nice tutorial. working fine in angular5
@LovebhatiaYT
@LovebhatiaYT 4 жыл бұрын
Hi Vishwas, I imported FormsModule to run ngModel for two way binding. But to know the exact error without formsModule I deleted the import and run it again. Result is same. ngModel runs without importing formsModule also. IS there any reason behind it. P.S: You way of teaching is very good and facinating
@edduardoo
@edduardoo 6 жыл бұрын
Great tutorials! keep doing. Thank you
@manishtomar157
@manishtomar157 4 жыл бұрын
Hi Vishwas, I am trying to print the ngModel value on console, but it is not reflecting. Could you please explain this a little bit.
@keshavrajacharya1145
@keshavrajacharya1145 6 жыл бұрын
woow amazing and easy explanation . Great tutorials . I liked it.
@arvindkumarrana2312
@arvindkumarrana2312 3 жыл бұрын
So Why did we use ngModel and not the "value" property to do two-way binding using [()] syntax? Well, to follow the [()] syntax, we need to follow a naming convention that says - If there is a property, let us say "someProperty", that we want to bind to then it should have a corresponding change event named "somePropertyChange". But in the case of the input element, while we have a "value" property, it doesn't have a corresponding change event named "valueChange". Instead, there is an event named "input" for that. So if you try to do - Then Angular shows an error. So, Angular provides us with a Directive named "ngModel". A directive is a fancy name for a class that adds additional behaviour to the elements. So "ngModel" has a corresponding change property named "ngModelChange". Internally, ndModel binds to the "value" property and "ngModelChange" binds to the "input" event. So the naming convention is followed and hence the two-way binding using [()] syntax works. That's why the official Angular Documentation says that - "Because no native HTML element follows the 'x' value and 'xChange' event pattern, two-way binding with form elements requires NgModel";
@dharmacharlie
@dharmacharlie 5 жыл бұрын
[( Thanks mate, it was really helpful!! )]
@AhamedKabeer-wn1jb
@AhamedKabeer-wn1jb 4 жыл бұрын
Superb bro...
@abdelfettahakkaoui2957
@abdelfettahakkaoui2957 5 жыл бұрын
the greatest tutos thanks
@alejandrocr9293
@alejandrocr9293 3 жыл бұрын
Thanks Thanks Thanks!!!
@jeremyedp1026
@jeremyedp1026 5 жыл бұрын
HI! many many thanks for this explication very but ry simple I have looking for pages where explication is complicated One more time thanks, for this information
@dheerajpaladi7041
@dheerajpaladi7041 3 жыл бұрын
I have to send list content from one component to another component in angular so that the list content in that component should print in another component .how to do it? and i dont want to use parent to child or child to parent component data transfer as the output is showing total html as output.
@robeeeeen
@robeeeeen 4 жыл бұрын
Just Awesome!
@skrezwan12
@skrezwan12 6 жыл бұрын
really helpful tutorial. liked it as a new learner..
@annappaangel
@annappaangel 4 жыл бұрын
Hi Codevolution, I need to pass an additional parameter in routerLink and use that value in routed template.. can you please help on this?
@saurabhpande7456
@saurabhpande7456 6 жыл бұрын
Simply Amazing!
@subratkumarbarik8896
@subratkumarbarik8896 5 жыл бұрын
Superb!!!
@kathiravant1668
@kathiravant1668 7 жыл бұрын
ur tuts is awesome
@chaitanya1999
@chaitanya1999 4 жыл бұрын
btw where did we define what attribute the two way binding is going to work on ?
@zeusaurel6714
@zeusaurel6714 3 жыл бұрын
The FormsModel import does not work with version 11. I have no clue what's wrong and I'm not angular savvy, help. Ty
@arvindkumarrana2312
@arvindkumarrana2312 3 жыл бұрын
It is FormsModule.
@Zawodowieec
@Zawodowieec 5 жыл бұрын
As always, great content. Thank you =]
@amitgaikwad1943
@amitgaikwad1943 4 жыл бұрын
is this tutorial for angular 5 or 8? because anglar 8 was released in 2019.
@inspiredaily2811
@inspiredaily2811 5 жыл бұрын
why that is not allowed ? why I have to use
@NoName-vw9hl
@NoName-vw9hl 3 жыл бұрын
I have the same doubt
@ealvinoq
@ealvinoq 5 жыл бұрын
Kudos!
@harryzhang7310
@harryzhang7310 4 жыл бұрын
is a place to download the code or the slides show?
@amrelattar5297
@amrelattar5297 5 жыл бұрын
thnx
@av03
@av03 6 жыл бұрын
nice tuts, thumbs up for that, i have question what is the difference only banana ex. (click) and banana in a box [(ngModel)]
@BlackStarLegend
@BlackStarLegend 6 жыл бұрын
[()] is a combination of -- 2 x (one way bindings), ie "property-binding' + 'event-binding'; There is nothing known as 2-way binding in angular. It is only a mirage created or fabricated by mixing 2 x (one way bindings) -- one from view -> logic && another logic -> view; final affect generated is a mixture of both -"property binding" + "event bidning" to give you "2-way binding" or [()].
@wallaygamer
@wallaygamer 5 жыл бұрын
Thanks you for help me!
@sudhir600
@sudhir600 5 жыл бұрын
in vuejs/nuxt we use v-model="variable".. in angular [(ngModel)] = "name" almost same but angular have difficult pattern bw, nice tutorial..
@mahmoudmutawe5439
@mahmoudmutawe5439 5 жыл бұрын
I mean it works for me after adding the module ,, but somehow it still showing this error in the console. "can't bind to 'ngmodel' since it isn't a known property of 'input' still show error"
@bilaldev6770
@bilaldev6770 5 жыл бұрын
You have to write [(ngModel)] with a Capitale 'M'
@MrWahidmaroc
@MrWahidmaroc 4 жыл бұрын
Angular 8 was released on May 28, 2019 !!!!!!!!!!!!!!!!!!!!!!!!!!
@disha9876
@disha9876 4 жыл бұрын
Does this tutor offer any UDEMY Course? Please let me know if any :) Anyone reading this , Have a good day! Cheers!
@filmolosophy
@filmolosophy 5 жыл бұрын
isnt ngModel deprecated in angular 7?
@filmolosophy
@filmolosophy 5 жыл бұрын
nvm... ngModel input property and ngModelChange event with reactive form directives has been deprecated.
@Go4omir
@Go4omir 6 жыл бұрын
[ means component bind to a view. ( means view bind to component. ng-model as two way binding is represented by [(
@ToDeoS
@ToDeoS 6 жыл бұрын
How did the op do the brackets at 02:17?
@patrickm9953
@patrickm9953 6 жыл бұрын
Bananas !... Great videos
@samallopa3579
@samallopa3579 4 жыл бұрын
How to bind private property?
@yaibanoutsukushii
@yaibanoutsukushii 4 жыл бұрын
banana in the box for win :D
@tysonliu2833
@tysonliu2833 5 жыл бұрын
banana in the box, what a way to memorize sth
@mrrishiraj88
@mrrishiraj88 3 жыл бұрын
👍
@mohamedsahli9935
@mohamedsahli9935 3 жыл бұрын
A Banana inside a box no way that i forget this
@svworld01
@svworld01 3 жыл бұрын
Simplicity :)
@phklucas7
@phklucas7 6 жыл бұрын
Doesnt work even after i imported formsmodule like what u taught...
@bruhaspati560
@bruhaspati560 6 жыл бұрын
yeah after doing that the data binding doesnt work anythng put inside '{{}}' jus doesnt work pls help!!
@JFLABBERVILLE
@JFLABBERVILLE 6 жыл бұрын
I hope you've found your answer by now but you have to have name in your input and then it works. The property used with ngModel can have any name you like as long as it's consistent with your declared property in the class of the .ts file. myname=""; in the class you can have public hatsonfire = "": and then in your template {{hatsonfire}} I hope that's helpful.
@bilaldev6770
@bilaldev6770 5 жыл бұрын
There are two possible reasons: 1. Missing _FormsModule_ hence Add this to your Module 2. Check the syntax/spelling of *[(ngModel)]* in the input tag
@muhammadfaheem8859
@muhammadfaheem8859 5 жыл бұрын
@@bilaldev6770 he is probably writing [(ngModule)] instead of [(ngModel)], i was doing the same :d
@bilaldev6770
@bilaldev6770 5 жыл бұрын
@@muhammadfaheem8859 I did the same mistake too LOL
@awaiszaki14
@awaiszaki14 6 жыл бұрын
two way data binding a banana in the box wow
@kidoo1567
@kidoo1567 8 ай бұрын
Full
@urviljoshi9168
@urviljoshi9168 2 жыл бұрын
👍👍🥰🇮🇳
@MZ-uv3sr
@MZ-uv3sr 3 жыл бұрын
BANANA! LMAO
@anthea6130
@anthea6130 2 жыл бұрын
lol Banana in a Box [ ( ) ]🤣🤣🤣🤣🤣🤣🤣
@igloomcyurt3657
@igloomcyurt3657 5 жыл бұрын
weak
@sreenivasamajji68
@sreenivasamajji68 6 жыл бұрын
The content is good, but the accent is kind of annyoing.
Angular Tutorial - 12 - ngIf Directive
7:09
Codevolution
Рет қаралды 445 М.
Angular Tutorial - 15 - Component Interaction
9:33
Codevolution
Рет қаралды 561 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 20 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 2,5 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 16 МЛН
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 13 МЛН
Angular Tutorial - 8 - Style Binding
4:20
Codevolution
Рет қаралды 388 М.
What is data binding | Data Binding | Angular 12+
3:53
procademy
Рет қаралды 56 М.
Angular Tutorial - 16 - Pipes
10:15
Codevolution
Рет қаралды 402 М.
Reactive Forms in Angular - Dynamic Validation
13:24
Decoded Frontend
Рет қаралды 10 М.
Angular Tutorial - 7 - Class Binding
6:26
Codevolution
Рет қаралды 546 М.
Angular Tutorial - 9 - Event Binding
5:19
Codevolution
Рет қаралды 482 М.
Two way databinding in AngularJS
7:30
kudvenkat
Рет қаралды 490 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 20 МЛН