diff --git a/site/content/examples/7guis-crud/App.html b/site/content/examples/7guis-crud/App.html index d1e49cccc1..82ce893aac 100644 --- a/site/content/examples/7guis-crud/App.html +++ b/site/content/examples/7guis-crud/App.html @@ -1,25 +1,17 @@ + + - - - - - + $: filteredPeople = prefix + ? people.filter(person => { + const name = `${person.last}, ${person.first}`; + return name.toLowerCase().startsWith(prefix.toLowerCase()); + }) + : people; - - + $: selected = filteredPeople[i]; -
+ $: if (selected) { + first = selected.first; + last = selected.last; + } + \ No newline at end of file + + + + + + + + + + \ No newline at end of file