Skip to content

Instantly share code, notes, and snippets.

@kumkanillam
Last active August 18, 2017 06:45
Show Gist options
  • Save kumkanillam/1c15b60d894c00ff67c3b69bb130938c to your computer and use it in GitHub Desktop.
Save kumkanillam/1c15b60d894c00ff67c3b69bb130938c to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
k:['one','two'],
kk:[{id:'one'},{id:'two'}],
});
<h1>Welcome to {{appName}}</h1>
<br>
{{get k (concat 0)}}
{{get kk (concat 0)}}
{{log (get kk (concat 0)) }}
<br>
{{outlet}}
<br>
<br>
{
"version": "0.11.1",
"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.11.0",
"ember-data": "2.11.0",
"ember-template-compiler": "2.11.0",
"ember-testing": "2.11.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment