Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save miguelcobain/10cf8358da60c5f3e2b1 to your computer and use it in GitHub Desktop.
Save miguelcobain/10cf8358da60c5f3e2b1 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
positionalParams: 'params'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
model1: 'model1',
model2: 'model2'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{{my-component "route" model1 model2}}
{{#each params as |param|}}
{{param}}
{{/each}}
{
"version": "0.4.0",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.5/ember.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.13.5/ember-data.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment