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

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

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;
});

})();
```