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

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.

主站蜘蛛池模板: 邢台县| 韶山市| 得荣县| 鄂尔多斯市| 昌邑市| 朔州市| 玛纳斯县| 高平市| 长白| 博白县| 昌图县| 宁陕县| 长沙县| 尼勒克县| 綦江县| 长岭县| 义马市| 宣武区| 宣恩县| 称多县| 吉林省| 自治县| 郎溪县| 固原市| 旌德县| 蕲春县| 平昌县| 河间市| 施秉县| 邯郸市| 天台县| 开平市| 尼木县| 东乡族自治县| 临安市| 长泰县| 巴中市| 南溪县| 贵阳市| 桂平市| 南充市|