https://github.com/fernandomoraes/one-way-data-binding
simple example unidirectional data binding template
https://github.com/fernandomoraes/one-way-data-binding
Last synced: about 1 year ago
JSON representation
simple example unidirectional data binding template
- Host: GitHub
- URL: https://github.com/fernandomoraes/one-way-data-binding
- Owner: fernandomoraes
- Created: 2014-08-17T14:27:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-17T14:36:06.000Z (almost 12 years ago)
- Last Synced: 2025-02-06T09:47:43.021Z (over 1 year ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
simple test:
===========
```html
{{name}}, {{age}} - {{city}}
{{name}} ({{year}})
```
```javascript
(function(){
new OneWay('app')
.registerController('PersonCtrl', function(scope){
scope.name = 'Fernando Moraes';
scope.age = 24;
scope.city = "SiderĂ³polis";
})
.registerController('CarCtrl', function(scope){
scope.name = 'Fusca';
scope.year = 1970;
});
})();
```