mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-23 22:30:37 +00:00
1.4 KiB
1.4 KiB
Title, Added, Status, Last reviewed
| Title | Added | Status | Last reviewed |
|---|---|---|---|
| Error Content Component | v2.4.0 | Active | 2018-09-13 |
Error Content Component
Displays info about a specific error.
Basic Usage
Once you have caught the error in your server you will need to redirect to /error/errorCode to display information about that error.
this.router.navigate(['/error', errorCode]);
Class members
Properties
| Name | Type | Default value | Description |
|---|---|---|---|
| errorCode | string |
Error code associated with this error. | |
| returnButtonUrl | string |
"/" | Target URL for the return button. |
| secondaryButtonUrl | string |
"report-issue" | Target URL for the secondary button. |
Details
Note that you need to provide values for the variables used in the view template.
You can customize your error messages by adding them to the translate files inside
lib/core/i18n:
"ERROR_CONTENT": {
"404": {
"TITLE": "An error occurred.",
"DESCRIPTION": "We couldn’t find the page you were looking for.",
"SECONDARY_BUTTON": {
"TEXT": ""
},
"RETURN_BUTTON": {
"TEXT": "Back to home"
}
}
}