bind, one-way, two-way & one-time :
Use on any HTML attribute.
* .bind
: Uses the default binding. One-way binding
for everything but form controls, which use two-way binding
.
* .one-way
: Flows data one direction: from the view-model
to the view
.
* .two-way
: Flows data both ways: from view-model
to view
and from view
to view-model
.
* .one-time
: Renders data once, but does not synchronize
changes after the initial render.
Data Binding Example :
<template>
<input type="text" value.bind="firstName">
<input type="text" value.two-way="lastName">
<a href.one-way="profileUrl">View Profile</a>
</template>