Example for Stackoverflow. One way binding
HTML
<div ng-app="ExampleApp">
<div ng-controller="ExampleController">
<div> One way <input ng-model="oneWay">
{{::oneWay}}
</div>
<div> Two way <input ng-model="twoWay">
{{twoWay}}
</div>
</div>
</div>
CSS
.error {
color: red;
font-style: italic;
}
JavaScript
angular.module('ExampleApp', [])
.controller('ExampleController', function($scope) {
$scope.oneWay = "one";
$scope.twoWay = "two";
});