Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 490 Bytes
<div class="input-group mb-5">
<input class="form-control" placeholder="search..." on-debounce="${ this.filter = event.target.value }">
</div>
<div>
<post-cards
data="${ this.filteredPosts = utils.filter(this.posts, this.filter, ['title', 'body']) }"
on-select="${ this.selectPost(event.detail) }"
on-delete="${ this.deletePost(event.detail) }"
></post-cards>
</div>
<if is="${ !this.filteredPosts.length }">
<p class="alert alert-warning">Not found anything</p>
</if>