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

  • Angular Router
  • Victor Savkin
  • 129字
  • 2021-07-09 19:20:30

Router state

A router state is a subtree of the configuration tree. For instance, the example below has ConversationsCmp activated. We say activated instead of instantiated as a component can be instantiated only once but activated multiple times (any time its route's parameters change):

Not all subtrees of the configuration tree are valid router states. If a node has multiple children of the same color, i.e., of the same outlet name, only one of them can be active at a time. For instance, ComposeCmp and PopupMessageCmp cannot be displayed together, but ConversationsCmp and PopupMessageCmp can. Stands to reason, an outlet is nothing but a location in the DOM where a component is placed. So we cannot place more than one component into the same location at the same time.

主站蜘蛛池模板: 吉林省| 新疆| 疏勒县| 库车县| 阿克苏市| 深泽县| 常熟市| 朝阳区| 鄱阳县| 隆回县| 台北县| 进贤县| 武威市| 镇原县| 汕头市| 普定县| 邵东县| 凤翔县| 措美县| 浠水县| 东阳市| 九龙坡区| 肇庆市| 隆尧县| 天气| 泰宁县| 临夏县| 平江县| 安仁县| 峨山| 桐柏县| 顺义区| 辽阳市| 阳新县| 达日县| 霍州市| 南木林县| 宁海县| 佛山市| 左权县| 库伦旗|