Skip to content

Instantly share code, notes, and snippets.

@poteto
Last active June 14, 2016 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save poteto/928fa0f66c7a96da2901f1aa4dcd5970 to your computer and use it in GitHub Desktop.
Save poteto/928fa0f66c7a96da2901f1aa4dcd5970 to your computer and use it in GitHub Desktop.
derp
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
Ember.defineProperty(this, 'foo', {
value: 'bar',
writable: false,
configurable: false,
enumerable: true
});
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
foo: {{foo}}
<br><br>
Open your console
{{input value=foo}}
<br>
<br>
{
"version": "0.9.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.0",
"ember-template-compiler": "2.6.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment