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

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.

主站蜘蛛池模板: 康平县| 秦安县| 凤庆县| 行唐县| 屏东市| 崇信县| 南乐县| 九江县| 闻喜县| 阆中市| 衡阳县| 绥阳县| 广饶县| 古浪县| 东至县| 陇川县| 大余县| 和静县| 龙泉市| 临洮县| 龙口市| 会理县| 南靖县| 班戈县| 敖汉旗| 平原县| 汉寿县| 大兴区| 宁国市| 分宜县| 卫辉市| 招远市| 新野县| 彭州市| 新龙县| 桃江县| 衡阳县| 宁远县| 淳化县| 武山县| 麻江县|