Skip to content

Instantly share code, notes, and snippets.

@siva-sundar
Created July 18, 2016 09:03
Show Gist options
  • Save siva-sundar/7f4ae791e8576b8112f9b41c85606975 to your computer and use it in GitHub Desktop.
Save siva-sundar/7f4ae791e8576b8112f9b41c85606975 to your computer and use it in GitHub Desktop.
Rendering test
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
Ember.run.later(this, () => {
this.set('appName', 'Iron man, dead pool');
}, 5000);
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{
"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": "1.12.2",
"ember-data": "2.6.1",
"ember-template-compiler": "1.12.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment