Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ember Data Auto-Update Test Case
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
{{#each model as |post|}}
{{post.title}}
{{/each}}
import DS from 'ember-data';
export default DS.Model.extend({
title: DS.attr('string')
});
import Ember from 'ember';
export default Ember.Route.extend({
model() {
//return [{title: 'hello'}];
return this.store.findRecord('post', 1);
}
});
{
"version": "0.4.17",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.