官术网_书友最值得收藏!

  • Vue.js 2.x by Example
  • Mike Street
  • 127字
  • 2021-07-02 20:00:28

Optimizing your App and Using Components to Display Data

In Chapter 2Displaying, Looping, Searching, and Filtering Data, we got our Vue app displaying our people directory, we can use this opportunity to optimize our code and separate it out into components. This makes the code more manageable, easier to understand, and makes it easier for other developers to work out the flow of data (or you, when you come back and look at your code in a few months!).

This chapter is going to cover:

  • Optimizing our Vue.js code by reducing the repetition, and logically organizing our code
  • How to create Vue components and use them with Vue
  • How to use props and slots with components
  • Utilizing events to transfer data between components
主站蜘蛛池模板: 泰宁县| 蓝山县| 永春县| 大庆市| 三穗县| 聂拉木县| 五大连池市| 宣威市| 隆子县| 讷河市| 团风县| 黄冈市| 扶绥县| 九龙坡区| 额尔古纳市| 江安县| 常德市| 出国| 嵊泗县| 溧阳市| 洪洞县| 木兰县| 钟祥市| 巴中市| 增城市| 厦门市| 民丰县| 壤塘县| 龙海市| 新宾| 资阳市| 新巴尔虎右旗| 三原县| 兴仁县| 建昌县| 柳州市| 邯郸县| 古蔺县| 博湖县| 绩溪县| 洛扎县|