angular4 辅助路由
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设置
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设置