Complete Vue.js 2 Web Development_ Practical guide to building end-to-end web development solutions with Vue.js 2

(singke) #1
Displaying, Looping, Searching, and Filtering Data Chapter 2

Summary


In this chapter, we looked at Vue HTML declarations, conditionally rendering our HTML


and showing an alternative if required. We also put into practice what we learned about
methods. Lastly, we built a filtering component for our table, allowing us to show active


and inactive users, find users with specific names and emails, and filter out rows based on
the balance.


Now we've got to a good point in our app, it's a good opportunity to take a look at our code


to see if it can be optimized in any way. By optimizations, I mean reducing repetition,
making the code simpler if possible, and abstracting logic out into smaller, readable, and


reusable chunks.


In Chapter 3, Optimizing Our App and Using Components to Display Data, we will optimize


our code and look at Vue components as a way of separating out logic into separate


segments and sections.

Free download pdf