1.辅助路由
2. 创建chat组件
ng g component chat
3. 组件html
css:
1
2
3
4
5
6
7
|
.chat{
background:green;
height:100px;
width:20%;
flow:left;
box-sizing: border-box;
}
|
4. 配置路由
5. app.component.html设置
本文转自Work Hard Work Smart博客园博客,原文链接:http://www.cnblogs.com/linlf03/p/7357419.html,如需转载请自行联系原作者