vendredi 23 décembre 2016

EmberJS access Ember.Object in Ember.Controller

My purpose is to seperate a lot of boilerplate code in an Object, but i know how do access this Object in my Controller.

The Code looks like this.

import Ember from 'ember';
"use strict";

var panel = Ember.Object.extend({

});
const Person = Ember.Object.extend({
    init() {
        this.set('shoppingList', ['eggs', 'cheese']);
    }
});


export default Ember.Controller.extend({
    width: 0,
    height: 0,
    panel: null,




Aucun commentaire:

Enregistrer un commentaire