Skip to content

Instantly share code, notes, and snippets.

@lstyles
Created October 17, 2015 19:13
Show Gist options
  • Select an option

  • Save lstyles/fa3d8d415619f9eca925 to your computer and use it in GitHub Desktop.

Select an option

Save lstyles/fa3d8d415619f9eca925 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
testAction: function() {
alert('test');
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<button {{action 'testAction'}}>Click</button>
{{outlet}}
<br>
<br>
{
"version": "0.4.13",
"dependencies": {
"jquery": "http://code.jquery.com/jquery-2.1.4.min.js",
"ember": "http://builds.emberjs.com/release/ember.debug.js",
"ember-data": "http://builds.emberjs.com/release/ember-data.js",
"ember-template-compiler": "http://builds.emberjs.com/release/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment