Skip to content

Instantly share code, notes, and snippets.

@alias-mac
Created May 6, 2019 22:24
Show Gist options
  • Save alias-mac/5caf14e73f5b5529089b732e27225e40 to your computer and use it in GitHub Desktop.
Save alias-mac/5caf14e73f5b5529089b732e27225e40 to your computer and use it in GitHub Desktop.
DDAU break
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
onChange(event) {
this.set('value', event.target.value);
},
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
inputValue: 'something',
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{my-component value=inputValue}}
{{outlet}}
{{inputValue}}
{{my-component value=anotherValue}}
{{anotherValue}}
<br>
<br>
<input value={{value}} oninput={{action "onChange"}}>
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "2.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment