Skip to content

Instantly share code, notes, and snippets.

@mitchlloyd
Forked from Robdel12/controllers.application.js
Last active September 2, 2016 18:11
Show Gist options
  • Save mitchlloyd/20492b061053a557016cc397453e3f20 to your computer and use it in GitHub Desktop.
Save mitchlloyd/20492b061053a557016cc397453e3f20 to your computer and use it in GitHub Desktop.
Emberx-select
import Ember from 'ember';
export default Ember.Controller.extend({
model: {}
});
{{let name=model.person.name}}
Name: {{name}}
<button onclick={{action (mut model) (hash person=(hash name='rwj'))}}>Update</button>
{
"version": "0.8.0",
"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.5.1",
"ember-data": "2.5.2",
"ember-template-compiler": "2.5.1"
},
"addons": {
"ember-let": "5.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment