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