1.辅助路由

angular4 辅助路由

 2. 创建chat组件

ng g component chat

3. 组件html

angular4 辅助路由

    css:

1
2
3
4
5
6
7
.chat{
  background:green;
  height:100px;
  width:20%;
  flow:left;
  box-sizing: border-box;
}

 4. 配置路由

angular4 辅助路由

5. app.component.html设置

angular4 辅助路由

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-03-26
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-13
  • 2021-09-17
  • 2021-06-15
  • 2022-01-21
  • 2022-12-23
  • 2021-08-28
相关资源
相似解决方案