1.辅助路由
2. 创建chat组件
ng g component chat
3. 组件html
css:
.chat{ background:green; height:100px; 20%; flow:left; box-sizing: border-box; }
4. 配置路由
5. app.component.html设置