Skip to content

Instantly share code, notes, and snippets.

@brendan-rius
Created March 24, 2016 18:24
Show Gist options
  • Save brendan-rius/a78ea77c34f91dcfd0b4 to your computer and use it in GitHub Desktop.
Save brendan-rius/a78ea77c34f91dcfd0b4 to your computer and use it in GitHub Desktop.
Example
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super();
// alert(this.get('p'));
},
appName: 'Ember Twiddle',
queryParams: ['p']
});
<h1>Welcome to {{appName}}</h1>
<br>
{{input type="text" value=p}}
p: {{p}}
{
"version": "0.6.5",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.3/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.4.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.3/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment