Professional Documents
Culture Documents
This book is in very preliminary stage , but if you are beginner in angular it will still serve the purpose.
when something is changed internally in the customer object the UI should get updated. So in
order to achieve this communication between UI to object developers end up writing functions as shown
below. “UitoObject” function takes data from UI and sets it to the object while the other function
“ObjecttoUI” takes data from the object and sets it to UI. function UitoObject() { Cust.CustomerName = $
("#TxtCustomerName").val(); } function ObjecttoUi() { $("#TxtCustomerName").val(Cust.CustomerName);
} So if we analyze the above code visually it looks something as shown below. Your both functions are
nothing but binding code logic which transfers data from UI to object and vice versa.