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

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
主站蜘蛛池模板: 遂宁市| 宁津县| 洛扎县| 寿阳县| 宝山区| 台北市| 拉孜县| 长宁区| 屯留县| 贵德县| 信宜市| 兴国县| 都兰县| 梁河县| 高安市| 汽车| 洪雅县| 鹿泉市| 彝良县| 赤壁市| 峨边| 中江县| 海安县| 池州市| 德江县| 汉沽区| 高唐县| 潜江市| 漯河市| 湛江市| 大兴区| 滦南县| 额济纳旗| 湖南省| 广元市| 神农架林区| 尼勒克县| 工布江达县| 巴楚县| 承德县| 凉山|