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

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.

主站蜘蛛池模板: 大足县| 牟定县| 石屏县| 即墨市| 平凉市| 饶阳县| 调兵山市| 巴东县| 鲁甸县| 阿坝| 尚义县| 和顺县| 门头沟区| 张家川| 财经| 类乌齐县| 榕江县| 墨玉县| 沛县| 南皮县| 石柱| 比如县| 仙桃市| 基隆市| 临高县| 汾西县| 汾西县| 剑阁县| 秭归县| 盘锦市| 盐边县| 扎赉特旗| 和静县| 札达县| 铁力市| 永顺县| 平利县| 依安县| 屏南县| 文登市| 台山市|