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.
- Host: GitHub
- URL: https://github.com/normandy72/1-time-binding
- Owner: Normandy72
- Created: 2023-01-05T20:28:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T21:08:57.000Z (over 3 years ago)
- Last Synced: 2025-01-14T12:46:47.017Z (over 1 year ago)
- Topics: angular, angularjs, html, html5, javascript, js
- Language: HTML
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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_