Skip to content

Instantly share code, notes, and snippets.

View zigotica's full-sized avatar

Sergi Meseguer zigotica

View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button',
click() {
let action = this.get('action');
if (typeof action === 'function') {
action();
}