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

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.

主站蜘蛛池模板: 集贤县| 漾濞| 永定县| 新密市| 平阴县| 余江县| 广东省| 县级市| 营山县| 兴国县| 正阳县| 祁连县| 项城市| 南城县| 连江县| 临汾市| 昌图县| 嘉荫县| 诸城市| 舒城县| 宝应县| 孟连| 五指山市| 阳泉市| 淮北市| 通辽市| 乐东| 乌兰浩特市| 繁昌县| 三台县| 辛集市| 昭苏县| 西青区| 和静县| 同江市| 东城区| 肥西县| 青浦区| 长兴县| 奈曼旗| 东乌珠穆沁旗|