dimanche 11 décembre 2016

Access the instance of the component from parent component in EmberJS

I have a "container" component

# components/container-component.js

import Ember from 'ember';
export default Ember.Component.extend({
  displayComponent: 'simple-box'
});

The template is

# templates/container-component.hbs

<div>
  
</div>

Now, from within "container-component" instance. How can I access the computed "displayComponent" instance?

Any ideas on how I could go about it?




Aucun commentaire:

Enregistrer un commentaire