I have a simple Ember component setup:
<div class="instant-search">
{{input value=filterString placeholder="Search"}}
</div>
I'm trying to setup a simple filter, so that whatever you type in that list, will filter the list on the model below:
<tbody>
{{#each model as |user| }}
{{#link-to 'users.edit' user tagName="tr"}}
<td>{{ current-status model=user }}</td>
<td>{{ user.name }}</td>
<td><em>{{ user.email }}</em></td>
{{/link-to}}
{{/each}}
</tbody>
I've played around with this all day and I can't get them talking to each other. Can anyone assist?
Aucun commentaire:
Enregistrer un commentaire