mercredi 20 avril 2016

Ember.js: Using a computed property in handlebars from a Service

So I have this computed property inside my component.js: contexts: Ember.computed.oneWay('myService.contexts'),

And I am able to get the content from another action

 openHelp(){
      console.log(this.get('contexts'))
      alert(this.get('contexts'))
    }
  }

But when I try to use the computed property in Handlebars () it's just blank.

I created an Ember Twiddle for this question: http://ift.tt/1Vkaw3x




Aucun commentaire:

Enregistrer un commentaire