jeudi 1 novembre 2018

In Ember can you overwrite component functions using the component helper?

Still pretty new to Ember. I am trying to use the component Ember helper to overwrite a function on the component.

My component looks like:

Ember.Component.extend({
  ...
  getValue() {...}
  ...
});

I have another component with a template that looks like:

<div>
  
</div>

I would imagine that this would overwrite the getValue function from the original component, but it does not. Is this possible using this helper to do this? Or am I going about this the wrong way?




Aucun commentaire:

Enregistrer un commentaire