mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
CST-5309 changes for error page component
This commit is contained in:

committed by
Luca Giamminonni

parent
43f4ff7cde
commit
a9fcdce960
27
src/app/page-error/page-error.component.ts
Normal file
27
src/app/page-error/page-error.component.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
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'];
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user