- 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.
推薦閱讀
- LabVIEW 2018 虛擬儀器程序設計
- Leap Motion Development Essentials
- Developing Middleware in Java EE 8
- Raspberry Pi for Secret Agents(Third Edition)
- Java技術手冊(原書第7版)
- Magento 1.8 Development Cookbook
- 零基礎學Python數據分析(升級版)
- Learning ELK Stack
- Web程序設計(第二版)
- 深入淺出PostgreSQL
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- Citrix XenServer企業運維實戰
- Zabbix Performance Tuning
- 大學計算機基礎
- Practical Microservices