assign
{
"version": "0.10.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.3.2",
"ember-data": "2.6.1",
"ember-template-compiler": "2.3.2"
},
"addons": {}
}
<h1>Welcome to {{appName}}</h1>
<br>
{{test.three.a}}
<br>
{{outlet}}
<br>
<br>
import Model from "ember-data/model";
import attr from "ember-data/attr";
import { belongsTo, hasMany } from "ember-data/relationships";
export default Model.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
test: Ember.computed(function() {
var one = Ember.Object.create({a:1});
var two = Ember.Object.create({b:2});
var three = Ember.Object.create();
Ember.assign(three, one);
one.set('a', 10);
return {one, two, three};
})
});