# Create a Page

To add new page in your app, You have to create a new Page Component.&#x20;

To create a Angular component run the following command in the command prompt on Windows PC or terminal on Mac.

```
$ ng generate component {component path}

// or you can use the shorter cammand given below

$ ng g c {component path}
```

Above cammand will create a component on given path. It will create four files.&#x20;

For example we create a component 'home' then following files will be generated:

1. home.component.html
2. home.component.scss
3. home.component.spec.ts
4. home.component.ts

We can skip spec file add 3. home.component.spec.ts file using `--skipTests=true`

```
$ ng generate component --skipTests=true home
```

For more angular command [click](https://angular.io/cli/generate) here.


---

# 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://docs-drift-angular.g-axon.work/settings/create-a-page.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.
