Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enterTest
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
text: 'start',
actions: {
setText: function(val) {
this.set('text', val);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{{input enter="setText"}}
<br>
{{text}}
{
"version": "0.4.17",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.2.0",
"ember-data": "2.2.0",
"ember-template-compiler": "2.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.