Skip to content

Instantly share code, notes, and snippets.

@kumkanillam
Last active October 17, 2016 08:26
Show Gist options
  • Save kumkanillam/f842b1bf71c0333aa3b31b5facae3d78 to your computer and use it in GitHub Desktop.
Save kumkanillam/f842b1bf71c0333aa3b31b5facae3d78 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions:{
buttonMethod(){
console.log('buttonMethod');
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
{{my-component buttonMethod=(action 'buttonMethod') }}
<br>
{{outlet}}
<br>
<br>
<button {{action buttonMethod }}> ButtonComponent </button>
{{yield}}
{{my-button buttonMethod=buttonMethod }}
{{yield}}
{
"version": "0.10.5",
"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.8.0",
"ember-data": "2.8.0",
"ember-template-compiler": "2.8.0",
"ember-testing": "2.8.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment