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

Chapter 1. What Do Routers Do?

Before we jump into the specifics of the Angular router, let's talk about what routers do in general.

As you know, an Angular application is a tree of components. Some of these components are reusable UI components (for example, list and table), and some are application components, which represent screens or some logical parts of the application. The router cares about application components, or, to be more specific, about their arrangements. Let's call such component arrangements router states. So a router state defines what is visible on the screen.

Note

A router state is an arrangement of application components that defines what is visible on the screen.

主站蜘蛛池模板: 忻城县| 天柱县| 沈丘县| 乌审旗| 塔河县| 保亭| 新河县| 图木舒克市| 尚义县| 北辰区| 余庆县| 镇平县| 卫辉市| 韶关市| 收藏| 塔城市| 楚雄市| 富锦市| 宁明县| 梧州市| 富川| 高尔夫| 嵊泗县| 静宁县| 宁阳县| 翁牛特旗| 根河市| 安丘市| 广南县| 彩票| 会同县| 西藏| 安平县| 武功县| 马关县| 吉木乃县| 黄梅县| 花垣县| 定安县| 定日县| 宁晋县|