Simple starting point for Ember.js fiddles

by pangratz666

HTML

<script src="https://github.com/downloads/emberjs/ember.js/ember-0.9.5.js"></script>
<script type="text/x-handlebars" >
</script>

JavaScript

Ember.LOG_BINDINGS = true;
App = Ember.Application.create();

App.controller = Ember.Object.create({
    name: 'Nellie'
});

App.boundController = Ember.Object.create({
    nameBinding: 'App.controller.name'
});

App.boundBoundController = Ember.Object.create({
    nameBinding: 'App.boundController.name'
});

Ember.run(function() {
    App.boundController.set('name', 'Tobias');
    App.boundBoundController.set('name', 'N. Bluth');
});