Angular 6 Tutorial 8: One way data binding

preview_player
Показать описание
This tutorial covers about one-way data binding provided in Angular and how to use it to bind to values from and to the JavaScript and the view of the component.

Рекомендации по теме
Комментарии
Автор

Excellent!. in this video you mentioned only interpolation binding and property binding ( Component to view) ... what about STYLE BINDING / CLASS BINDING and ATTRIBUTE BINDING?

nr.selvaraja
Автор

in the constructor you normally don't reassign variables, what you do is varName = this.varName; and this way you will have access to them.

zlatkoiliev
Автор

Hello bro
I want to do data binding in source and destination field. Like I have two input fields in html, one is source and other bis destination.
I want to make the destination field to be disabled until the source field is filled.
Can u help me I'm doing this

ankitranjansinha
Автор

I am not actually sure about doing code in the constructor. From my understanding the constructor my only be called once, and then the component could be reused. Best practice I believe is to use the ngOnInit function.

DrBarnabus
Автор

is property binding and attribute binding are same

mohankumar