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

The almighty components

Components are the building blocks that will compose our app--it's the central concept of the Vue apps. They are small parts of the view, and they should be relatively small, reusable, and as self-sufficient as possible--structuring an app with components will then help maintain and evolve it, especially if it becomes large. In fact, this is becoming the standard method for creating huge web apps in an efficient and manageable way.

In concrete terms, your app will be a giant tree of smaller components:

For example, your app could have a form component, which could contain several input components and button components. Each one would be a very specific part of the UI, and they would be reusable all across the app. Being quite small in scope, they would be easy to understand and reason about, and thus easier to maintain (issue fixing) or to evolve.

主站蜘蛛池模板: 镇宁| 垦利县| 韩城市| 清新县| 周至县| 遂昌县| 克什克腾旗| 南靖县| 微博| 循化| 英超| 桐柏县| 柯坪县| 东明县| 滕州市| 松溪县| 安龙县| 甘肃省| 本溪市| 博兴县| 吴堡县| 拜城县| 奉节县| 巴楚县| 南岸区| 新蔡县| 西畴县| 巧家县| 奉节县| 榆树市| 方正县| 嘉荫县| 宝丰县| 赣榆县| 塘沽区| 舞阳县| 璧山县| 五寨县| 卫辉市| 洛川县| 兰州市|