Skip to content

Instantly share code, notes, and snippets.

@arenoir
Last active October 6, 2015 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arenoir/824fc7c97e7b8c4e1c71 to your computer and use it in GitHub Desktop.
Save arenoir/824fc7c97e7b8c4e1c71 to your computer and use it in GitHub Desktop.
example
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return this.store.createRecord('job');
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{model}}
{{model.hasDirtyAttributes}}
{{outlet}}
<br>
<br>
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr('name')
});
{
"version": "0.4.11",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.1.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.1.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.1.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment