December 2017
Beginner
372 pages
10h 32m
English
The binding in NativeScript when using Angular is the same as we have in pure Angular applications. We have one-way binding, two-way binding, and Event binding available to us.
As we can see in our home page template code, we have used one-way binding when binding the label control using the double curly braces.
Two-way binding is achieved similarly as in Angular with the ngmodel syntax.
The difference with Angular is the event to which we attach the binding. In a web application, this could be a span, a label, a div, or an input element; but in the case of NativeScript, the UI elements have their own properties. For example, in the case of listview, it is the items property, and in the case of ...
Read now
Unlock full access