Skip to content

Instantly share code, notes, and snippets.

@chancancode
Last active December 13, 2017 18:05
Show Gist options
  • Save chancancode/a2013417648c4dced26ae78e8aaa5e6a to your computer and use it in GitHub Desktop.
Save chancancode/a2013417648c4dced26ae78e8aaa5e6a to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
name: 'Godfrey'
});
<h1>Welcome to Ember Twiddle</h1>
<label>Your Name: {{input value=name}}</label>
<hr>
<form>
<!-- check the markup: no wrapper around {{hello-world}} -->
<textarea>{{hello-world name=name message="have a nice day"}}</textarea>
<br>
<input type="reset">
</form>
{{site-footer}}
Hello {{@name}}, {{@message}}!
{
"version": "0.12.1",
"EmberENV": {
"FEATURES": {
"ember-glimmer-named-arguments": true,
"ember-glimmer-template-only-components": true
}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "canary",
"ember-template-compiler": "canary",
"ember-testing": "canary"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment