1.3.UI搭建

ui整体布局

  • Header

  • sidebar

  • Footer

  • Main

模块功能介绍

核心模块:只加载一个的组件和服务(比如header、footer、sidebar)

工具类 实体类

export interface User{
     id?: string;
     email: string;
     name?: string;
     password?: string;
     avatar?: string;
}

div>header+main+footer

dialog

需要在模块的entryComponent中声明

扩展:angular-cli命令

生成组件:ng g c {文件夹名}/{组件名} [ 参数 ]

生成组件:ng g m {文件夹名}/{模块名} [ 参数 ]

  • 不生成测试代码:--spec=false

Last updated

Was this helpful?