| 1. |
Explain Property Binding Or One Way Binding In Angular Js? |
|
Answer» BASICALLY PROPERTY binding means passing data from the component class and setting the value of a given element in the view. It is a one WAY binding in which the data is passed from component to the class. It allows us to control the element property values from component to class. Property binding in angular can TAKE place by three ways: Interpolation can be used to define a value, as long as the value being defined is a STRING. Wrapping brackets around the element property and binding it to the component property is the most common type of property binding. The third way is by adding “bind” before the element property. Basically property binding means passing data from the component class and setting the value of a given element in the view. It is a one way binding in which the data is passed from component to the class. It allows us to control the element property values from component to class. Property binding in angular can take place by three ways: Interpolation can be used to define a value, as long as the value being defined is a string. Wrapping brackets around the element property and binding it to the component property is the most common type of property binding. The third way is by adding “bind” before the element property. |
|