# 1.3.UI搭建

## ui整体布局

* Header
* sidebar
* Footer
* Main

## 模块功能介绍

核心模块：只加载一个的组件和服务（比如header、footer、sidebar）

工具类 实体类

```typescript
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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://moluo.gitbook.io/notes/bian-cheng-xue-xi/qian-duan/angular-da-zao-qi-ye-ji-xie-zuo-ping-tai/1.3.ui-da-jian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
