- Vue.js 2.x by Example
- Mike Street
- 134字
- 2021-07-02 20:00:31
Creating component methods and computed functions
We now need to create the methods we had created on the Vue instance on the child component, so they are available to use. One thing we could do is cut and paste the methods from the parent into the child in the hope they would work; however, those methods rely on parent properties (such as filtering data) and we also have the opportunity to utilize computed properties, which cache the data and can speed up your app.
For now, remove the v-show attribute from the tr element—as this involves the filtering, and that will be covered once we have our rows displaying correctly. We'll step through the errors and resolve them one at a time to help you understand problem-solving with Vue.
推薦閱讀
- Web程序設(shè)計及應(yīng)用
- Mastering JavaScript Functional Programming
- C語言最佳實(shí)踐
- Java:Data Science Made Easy
- Java 11 Cookbook
- Haskell Data Analysis Cookbook
- Learning Probabilistic Graphical Models in R
- HTML5與CSS3基礎(chǔ)教程(第8版)
- 編程菜鳥學(xué)Python數(shù)據(jù)分析
- 石墨烯改性塑料
- Mobile Forensics:Advanced Investigative Strategies
- HTML5與CSS3權(quán)威指南
- 網(wǎng)頁設(shè)計與制作
- Beginning C# 7 Hands-On:The Core Language
- JavaScript Unit Testing