08.02.2017 Views

vuejs

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

List Rendering 34<br />

Note<br />

Stories filtered by writer.<br />

As you may noticed, our li tag is getting really big, so we have splitted it in more lines.<br />

Simple enough, right? Next we will implement a very basic (but awesome) search. When the user<br />

types a part of a story, we can guess which story it is and who wrote it, in real time. We’ll add a text<br />

input binded to an empty variable query so we can dynamically filter our Stories array.<br />

1 <br />

2 Lets hear some stories!<br />

3 <br />

4 Alex's stories<br />

5 <br />

6 <br />

9 {{ story.writer }} said "{{ story.plot }}"<br />

10 <br />

11 <br />

12 John's stories

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!