Skip to content

Instantly share code, notes, and snippets.

@chancancode
Last active July 24, 2016 07:03
Show Gist options
  • Save chancancode/48b948a17010d0d23ac2ad7d5b3150cb to your computer and use it in GitHub Desktop.
Save chancancode/48b948a17010d0d23ac2ad7d5b3150cb to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
lol: false
});
<h1>Welcome to {{appName}}</h1>
<br>
<label>{{input type="checkbox" checked=lol}} LOL</label>
<p>(Try to check this and then uncheck it)</p>
<hr>
{{#foo-bar lol=lol as |fooBar|}}
{{fooBar.baz}}
<hr>
{{#with fooBar.baz as |baz|}}
{{baz}}
{{/with}}
{{/foo-bar}}
<br>
<br>
{{yield (hash baz=(if lol "lol" (component "foo-bar-baz")))}}
{
"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": "2.6.0",
"ember-data": "2.6.1",
"ember-template-compiler": "2.6.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment