Skip to content

Instantly share code, notes, and snippets.

View kdimatteo's full-sized avatar

Keith DiMatteo kdimatteo

View GitHub Profile
@kdimatteo
kdimatteo / components.hello-component.js
Created August 23, 2016 14:02 — forked from danlourenco/components.hello-component.js
component interpolation within handlebars template
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['ember-component']
});
/**
* Enable route to __noSuchMethod__ when unknown method calling.
*
* @param {Object} obj Target object.
* @return {Object}
*/
function enableMethodMissing(obj) {
var functionHandler = createBaseHandler({});
functionHandler.get = function(receiver, name) {