JSFiddle - React, Tailwind, and code Playground
by durinthomas
HTML
<script src="https://raw.github.com/wycats/handlebars.js/1.0.0-rc.3/dist/handlebars.js"></script>
<script src="https://raw.github.com/emberjs/ember.js/release-builds/ember-1.0.0-rc.1.js"></script>
<script src="https://gist.github.com/ThomasDurin/5030150/raw/d517c8bad1a533aafaae9488f558bb23231cea6a/ember-data.js"></script>
<script type="text/x-handlebars" data-template-name="application">
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="test">
setAsRecurringAction : {{view Em.Checkbox
checkedBinding="view.setAsRecurringAction" }}
</script>
JavaScript
App = Ember.Application.create();
// View
App.TestView = Em.View.extend({
setAsRecurringAction: false,
setActionSchedule: (function(){
if(this.get('setAsRecurringAction'))
alert('property checked');
else
alert('property unchecked');
}).observes('setAsRecurringAction')
});
// Router
App.Router.map(function() {
this.route('test', {path: '/'});
});