Skip to content

Instantly share code, notes, and snippets.

@nerdyworm
Created March 22, 2016 22:16
Show Gist options
  • Save nerdyworm/af71939e3528c28cfb13 to your computer and use it in GitHub Desktop.
Save nerdyworm/af71939e3528c28cfb13 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
isLoading: true,
actions: {
onLoad() {
this.set("isLoading", false);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<img src="https://unsplash.it/200/300" onload={{action "onLoad"}} class="{{isLoading}}">
{{isLoading}}
<br>
<br>
{
"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