Created
June 27, 2016 20:26
-
-
Save krisselden/20df8663e49c6b7b35b9d3641f7f308b to your computer and use it in GitHub Desktop.
New Twiddle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default class MyController extends Ember.Controller { | |
constructor() { | |
super({ | |
appName: 'Ember Twiddle' | |
}); | |
console.log(this._debugContainerKey); | |
console.dir(this); | |
} | |
static reopen(props) { | |
for (let key in props) { | |
this.prototype[key] = props[key]; | |
} | |
} | |
static extend(props) { | |
class Factory extends this {} | |
for (let key in props) { | |
Factory.prototype[key] = props[key]; | |
} | |
return Factory; | |
} | |
static create() { | |
return new this(...arguments); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.10.1", | |
"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.6.0", | |
"ember-data": "2.6.1", | |
"ember-template-compiler": "2.6.0" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment