Computed alias from main controller

plugins

#1

Does anyone know how to best get a computed alias to work into the DiscoveryController?

My logic currently looks like this…

import DiscourseController from 'discourse/controllers/controller';
import DiscoveryController from 'discourse/controllers/discovery';

   DiscoveryController.reopen({
      needs: ['controller', 'application'],
      myproperty: Ember.computed.alias('controllers/controller.myproperty'),
      __init: function() {
        console.log(this.get('myproperty'));
      }.observes('model').on('loaded')
    });

The problem I’m having is that myproperty never gets set to the value of myproperty that is set in the main Discourse Controller, I’ve used ember quite a bit and I think the issue is just coming down to proper naming since the DiscourseController is not named like the other ones as it’s the main application controller, but attempting to use

Ember.computed.alias('controllers/application.myproperty')

also fails.

As does

Ember.computed.alias('model.controllers/controller.myproperty')