explore-services/portal-2/src/app/error/errorPage.component.ts

36 lines
1008 B
TypeScript

import { Component, Input } from '@angular/core';
import { Location } from '@angular/common';
@Component({
selector: 'error',
template: `
<div class="container">
<h1>
Bad karma: we can't find that page!
</h1>
<br>
<p>
You asked for {{page}}, but despite our computers looking very hard, we could not find it. What happened ?
</p>
<ul>
<li>the link you clicked to arrive here has a typo in it</li>
<li>or somehow we removed that page, or gave it another name</li>
<li>or, quite unlikely for sure, maybe you typed it yourself and there was a little mistake ?</li>
</ul>
</div>
`
})
export class ErrorPageComponent {
private page: string;
constructor (private _location: Location) {
this.page = _location.path(true);
//this.page = _router.url;
//this.page = location.href;
}
}