Skip to content

Instantly share code, notes, and snippets.

@felixkiss
Created October 29, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixkiss/cf9167da91316ee33252f22e1e4f38e8 to your computer and use it in GitHub Desktop.
Save felixkiss/cf9167da91316ee33252f22e1e4f38e8 to your computer and use it in GitHub Desktop.
Action Bubble Test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
counter: 0,
actions: {
trClick() {
this.incrementProperty('counter');
},
}
});
body {
margin: 12px 16px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12pt;
}
tr {
width: 200px;
background-color: red;
}
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<tr {{action 'trClick' on="click"}}>
{{input type="text"}}
<br>
Counter: {{counter}}
</tr>
{{outlet}}
<br>
<br>
{
"version": "0.10.6",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.9.0",
"ember-data": "2.9.0",
"ember-template-compiler": "2.9.0",
"ember-testing": "2.9.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment