Skip to content

Instantly share code, notes, and snippets.

@misterbyrne
Created August 2, 2016 10:06
Show Gist options
  • Save misterbyrne/6dcef3af1f477810e3b229758cc97a79 to your computer and use it in GitHub Desktop.
Save misterbyrne/6dcef3af1f477810e3b229758cc97a79 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
color: '"><h1>Injected</h1>',
style: Em.computed('color', function() {
return `background-color: ${this.get('color')}`
})
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
<div style={{style}}>
Hello
</div>
{{outlet}}
<br>
<br>
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment