Browse Source

fix typos

pull/19850/head
Sinan997 2 years ago
parent
commit
ce58640dbe
  1. 13
      docs/en/UI/Angular/Title-Strategy-Service.md

13
docs/en/UI/Angular/Title-Strategy-Service.md

@ -3,6 +3,7 @@
## **ABP has a default title strategy for Angular UI**.
This strategy is based on the title property. Provide a title property when setting a new route.
**Example:**
```ts
@ -15,20 +16,20 @@ This strategy is based on the title property. Provide a title property when sett
**`Note:`**
- It is better to use localized text in title property. It will be translated by **LocalizationService**.
- **`title`** property is already setted in **ABP internal packages**.
- It is better to use localized text in the title property. It will be translated by **LocalizationService**.
- The **`title`** property is already set in **ABP internal packages**.
## How it looks
You create a new route and provide a **`title`** property, it will look like this **`<title> | <projectName>`**
When you create a new route and provide a **`title`** property, it will look like this **`<title> | <projectName>`**
### What is `projectName` and How to Customize
- **`projectName`** is name of your application. By default ABP set's a [**`projectName`**](https://github.com/abpframework/abp/blob/f48f78618a326644843c01424b093f0d79448769/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain.Shared/Localization/MyProjectName/en.json#L4) for your application. This localization text is added for customization, it can be changed for different languages.
- **`projectName`** is the name of your application. By default, ABP sets a [**`projectName`**](https://github.com/abpframework/abp/blob/f48f78618a326644843c01424b093f0d79448769/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain.Shared/Localization/MyProjectName/en.json#L4) for your application. This localization text is added for customization and can be changed for different languages.
### Disable `projectName`
- If you dont want to show **`projectName`** in title, you can disable it.
- If you dont want to show **`projectName`** in the title, you can disable it.
**app.module.ts**
@ -57,4 +58,4 @@ providers: [
],
```
- You can check [Angular Documentation](https://angular.io/api/router/TitleStrategy) to write custom **`TitleStrategy`**.
- You can check [Angular Documentation](https://angular.io/api/router/TitleStrategy) to write a custom **`TitleStrategy`**.

Loading…
Cancel
Save