Data Binding - Angular (Tutorial #6)
HTML-код
- Опубликовано: 8 сен 2024
- In this video we will learn about Data Binding in Angular. Data Binding allows to define communication between Component and View.
Use this link to share this video: • Data Binding - Angular...
So we can say DB is process where data is passed from Angular Component to the view(template) and from view to component.
There are four forms of data binding and they differ in the way the data flow.
1) Interpolation . {{ }}
2)Property Binding [ ]
3)Event Binding ( )
4) Two way binding [( )]
Interpolation:
Interpolation provides the data binding from component to view. Interpolation is one way data binding It binds from Component class to the template
Property Binding:
Property binding allows us to bind Property of view element to the value of template expression
The property binding uses the [ ] bracket. The binding target is placed inside the square bracket. The binding source is enclosed in quotes
Difference between Interpolation and Property Binding:
If I talk about Interpolation - it requires expression to return a string. So if you want to set element property to a non string data value - we must use property binding
Event Binding:
The interpolation and property binding are one way binding from component to view.
Event binding is used to perform an action in the component (may be executing a method) when user-raise a event - like click on button
Event binding uses the parenthesis. And name of the event is enclosed in parenthesis and then it assigned to the statement which mostly the method in the component class
Two-way data binding:
2 way data binding means changes made in component data should sync to the view so any changes made in the view are immediately updated in the respective component data
Two way binding is used mainly in data entry forms whenever user makes any changes in the data we would like to update our model in the component with new data and if model changes, we would like to update view as well
Angular uses combination of property binding and event binding by using ngModel directive
ngModel directive is not apart of angular core library . It is defined in the FormsModule library. You need to import FormsModule into our main module that is app.module.ts
If you liked this video don't forget to subscribe my channel
Click subscribe for more updates:
• Introduction- Angular ...
Connect with me:
Facebook: / angularjs4beginners
LinkedIn: / nisha-singla-82407aa0
Nisha, you are an excellent trainer with expertise in the subject. You explained such complex concepts/topics of angular effortlessly. I am a big fan of you. I watched your whole angular series and only one word, it is awesome. I have never seen such a detailed explanation of Angular Topics. You really made our life easy. Thank you so much and Hope you will continue to share your knowledge with strugglers.
Woowwwwwwww!!! Thanks alottttttt
Most welcome 😊
Best video ever seen on Data Binding..You have unique way to teach complex things easier
Such Clear and Concise explanation!!! Much appreciated.
Well done! Excellent tutorial! Thank you very much and greetings from Switzerland!
Many thanks!
Very nice of you to give us these tutorials. Thank you very much indeed
My pleasure!
Thank you so much, the video is so good. It is easy to understand, much better than other top rank videos.
very niice thanks!
Explained very fluidly. Great Job!
Thank you
The best tutorial in the world thank you very much I wish I could give you more then one likes 👍
Thank you so much Muxammad
Explaing very well with examples and also thanks to giving notes about concepts under the down of the video
thanks Naresh. yes notes can be used if someone faced some issue in understanding
Amazing tutorial. clears all the doubts of data binding
Glad it was helpful!
One of the Best Tutorial clear explanation sister Very Smooth and Clear
Glad it was helpful!
Very nice explanation. Really helps to understand the Angular from scratch.
Awsome way of teaching.. full ropic knowledge.. and the way you teach is just superb👌🏻👌🏻👌🏻👌🏻
Keep watching
Thank you Nisha! Peace between China and India.
very nice explanation thank you very much
you're welcome
Very talented women thank you mam 🙏
nice one dear ,, thanks
Thank you Hardik
Great, thanks very much!
Thank you :)
Wonderful explanation .great job Nisha!!!!!!!!!!!!!!!
Thanks
Woow.....! cool thank u mam
Most welcome 😊
Thank you so much I understood very much
That was awesome explanation. Thanks for clarifying such crucial concepts 🙏.
Glad it was helpful!
Thanks for this video, it is really helpful
Thank you
Perfect precise and on point explanation , subscribed and Thank you please keep uploading more videos 👌
Thank you Kushaal 😄
Excelente conteúdo. Muito obrigado!
não há de quê
nice explanation
nice explanation.. going to subscribe
Glad to connect 😃
ur great mam, I subscribed ur channel 👌👌👌👍👍
Hey glad to connect 🙏
Very Nice lecture Nisha! Thank You.
Thanks
Very helpful. Thank you.
Pleasure is all mine
Good one. Post more videos with
Thanks
@@NishaSingla Share source code
hi nisha your videos and explanations are an awesome... also could you please upload a sample project....
Hey Nisha..Wonderful video on Data Binding. Thanks.
Thank you Avaneesh
well explained ma'am
Well Explained... thanks mam
thank you . :)
simple and clean as usual 👍
👌👌👍👍
Thanks
We are eagerly waiting for ur superb video tutorials on Angular9 ..i like the way u teach concepts and simplify the topics ..keep it up ....keep uploading tutorials ...
Well explained... thanks Nisha
Thank you Ganesh
One more example of two way data binding
This is amazing and short. Thanks for clarifying those four important Angular concepts in such a short video. How can one connect with you?
Thank you Frida
Really nisha, you deserve a high position in It field n please if possible upload videos on react and express js
Thank you Sai
@@NishaSingla please tech javascript as well nisha
i love you this voice owner
In event binding while click on change title it's not changing the name ple tell me
very nice and informative videos on angular js ..thanks a ton
Its Angular 5. Not Angular JS
@@Avaneesh_Mishra got it sir..I know very well, typo mistake
For angular 8 it is same?? I mean data binding
Yes concept is same
hey give the link repository link of this program
could u please make some videos on component communication from parent to child and child to parent?
ruclips.net/video/qC3P_Ye-jec/видео.html
Please share Two way Binding without ngModel
4:39 Interpolation
11:34 Two way data binding
any udemy course on angular ?
Nopes... I have just this channel
what is obserable?
hi nisha,how did u create images folder with in assets ?manual or with angular cli,if it is angular cli,coulde you tell me
I have created it manually
can u tell how did u get that image into your image folder ??
Copy paste :)
English ke bad hindi me asplend kijiye n mam please
Can't bind to 'ngModel' since it isn't a known property of 'input'.
9 im getting this error. please help me out this. even after i imported in module.ts
~~~~~~~~~~~~~~~~~
I hope you have imported FormsModule from angular/forms package and then importa in &NgModule({})
@@NishaSingla solved thank you
@@NishaSingla thank you nisha