An open API service indexing awesome lists of open source software.

https://github.com/normandy72/1-time-binding

2-way, 1-way and 1-time Binding in AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin.
https://github.com/normandy72/1-time-binding

angular angularjs html html5 javascript js

Last synced: 28 days ago
JSON representation

2-way, 1-way and 1-time Binding in AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin.

Awesome Lists containing this project

README

          

#### Examples of Binding
__2-way binding__
```

```
_2-way binding (ng-model) means:_
* _listener for change on input automatically set up by Angular updates prop value on $scope_
* _direct update to prop value is automatically updated in UI_

__1-way binding__
```

Echo: {{lastName}}

```
_1-way binding ({{prop}}) means:_
* _direct update to prop value is automatically updated in UI_

__1-time binding__
```

Echo: {{::fullName}}

```
_1-time binding ({{::prop}}) means:_
* _initialized value of prop is automatically updated in UI_
* _watcher for prop is removed, so UI never again gets updated_