mercredi 8 septembre 2021

How do you render and filter over a collection of data from an @argument?

This question comes from our Ember Discord


I have something like this


  <ItemList @categories=/>


I am calling action somewhere else, then filtering the @data and I would like to reset this each @data.

I want to assign the filtered result to @data data passed from parent component to this

At the same component I have button

<li 
  class="inline hover:underline cursor-pointer ml-4" 
  
>
  
</li>

and changeProject action filters the @data that I would like to re-assign to #each for example - this.data = filteredModel; does not work.




Aucun commentaire:

Enregistrer un commentaire