Skip to content

Instantly share code, notes, and snippets.

@Samsinite
Last active September 26, 2016 17:31
Show Gist options
  • Save Samsinite/18bd0697c36d8cf5eae5d492a25775ab to your computer and use it in GitHub Desktop.
Save Samsinite/18bd0697c36d8cf5eae5d492a25775ab to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('index', { path: '/' });
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return { firstName: 'Foo' };
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{{one-way-input model.firstName
update=(action (mut model.firstName))}}
{
"version": "0.10.5",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "1.13.13",
"ember-template-compiler": "1.13.13",
"ember-testing": "1.13.13"
},
"addons": {
"ember-one-way-controls": "1.1.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment