O'Reilly logo

The Majesty of Vue.js by Kostas Maniatis, Alex Kyriakidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Homework

For this chapter's exercise, you should do the following. Start by creating an array of people. Each person has a name and an age. Using what you've learned so far, try to render the array in a list and sort it by age. After that, create a second list below and apply a custom filter called old which returns all people older than 55 years old.

Feel free to fill the array with your own data. Be careful to add people with age older and younger than 55 to ensure your filter is working properly. Go ahead!

Tip

Built-in filter orderBy and Vue.filter are necessary here.

Homework

Example output

You can find a potential solution to this exercise here: https://goo.gl/F2Mdet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required