Skip to content

Instantly share code, notes, and snippets.

@kturney
Created December 19, 2016 17:49
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 kturney/8bd17be80e30f6149bcdf644f3d1f68d to your computer and use it in GitHub Desktop.
Save kturney/8bd17be80e30f6149bcdf644f3d1f68d to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.func = () => {};
this.func.aProp = 'this is a property on a function';
}
});
expect func.aProp to be in quotes: "{{func.aProp}}"
{
"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.10.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment