mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
28 lines
735 B
TypeScript
28 lines
735 B
TypeScript
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
/**
|
|
* This component representing the `PageError` DSpace page.
|
|
*/
|
|
@Component({
|
|
selector: 'ds-page-error',
|
|
styleUrls: ['./page-error.component.scss'],
|
|
templateUrl: './page-error.component.html',
|
|
changeDetection: ChangeDetectionStrategy.Default
|
|
})
|
|
export class PageErrorComponent {
|
|
status: number;
|
|
code: string;
|
|
/**
|
|
* Initialize instance variables
|
|
*
|
|
* @param {ActivatedRoute} activatedRoute
|
|
*/
|
|
constructor(private activatedRoute: ActivatedRoute) {
|
|
this.activatedRoute.queryParams.subscribe((params) => {
|
|
this.status = params.status;
|
|
this.code = params.code;
|
|
});
|
|
}
|
|
}
|