mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2764] Applied new doc tool features to core library (#3383)
This commit is contained in:
committed by
Eugenio Romano
parent
5831bc1d77
commit
41777e0540
@@ -4,7 +4,7 @@ Displays info about a specific error.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
Once you have catched the error in your server you will need to redirect to ```/error/errorCode``` to display information about that error.
|
||||
Once you have catched the error in your server you will need to redirect to `/error/errorCode` to display information about that error.
|
||||
|
||||
```ts
|
||||
this.router.navigate(['/error', errorCode]);
|
||||
@@ -27,16 +27,16 @@ this.router.navigate(['/error', errorCode]);
|
||||
### Error Content Component
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | -- |
|
||||
| ---- | ---- | ----------- |
|
||||
| errorCode | string | Error code |
|
||||
| errorTitle | string | Error title |
|
||||
| errorDescription | string | Short description about the error |
|
||||
| errorLink | string | (Optional) This link will be attached at the end of the error description and itt will be highlighted.|
|
||||
|
||||
| errorLink | string | (Optional) This link will be attached at the end of the error description and itt will be highlighted. |
|
||||
|
||||
## Details
|
||||
|
||||
You can customize your errors by adding them to the tranlate files inside ```lib/core/i18n```.
|
||||
You can customize your errors by adding them to the tranlate files inside `lib/core/i18n`.
|
||||
|
||||
```json
|
||||
"ERROR_CONTENT": {
|
||||
"HOME_BUTTON": "Back to home",
|
||||
@@ -58,6 +58,3 @@ You can customize your errors by adding them to the tranlate files inside ```lib
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user