Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
domainList
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
domains: ['wow', 'mom'],
domainsList: Ember.computed('domains', function() {
var domains = this.get('domains').join(', ');
return domains;
})
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{domainsList}}
<br>
<br>
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment