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

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.

主站蜘蛛池模板: 奉节县| 蓬莱市| 青海省| 崇信县| 衡山县| 科技| 彭泽县| 新田县| 海南省| 乌鲁木齐市| 礼泉县| 呼伦贝尔市| 克山县| 巨野县| 南乐县| 社旗县| 玉山县| 盈江县| 乐山市| 八宿县| 陆良县| 惠来县| 桃江县| 上饶县| 修水县| 静乐县| 大足县| 克东县| 三河市| 正宁县| 津市市| 任丘市| 大新县| 滨州市| 麻阳| 郴州市| 朔州市| 凤山县| 石家庄市| 瓮安县| 尉犁县|