File

src/app/home-page/error-page/error-page.component.ts

Description

An error page to display various client-side errors, and errors received from the server.

Metadata

selector app-error-page
styleUrls error-page.component.css
templateUrl ./error-page.component.html

Index

Properties

Constructor

constructor(katanaService: KatanaService)

Constructor

Parameters :
Name Type Optional Description
katanaService KatanaService no

Collects errors in Katana and allows them to be read and displayed to the user. Used in error-page.component.html (i.e. DO NOT DELETE)


Properties

Public katanaService
katanaService: KatanaService
Type : KatanaService
Collects errors in Katana and allows them to be read and displayed to the user. Used in error-page.component.html (i.e. DO NOT DELETE) **********************************************************
import { Component } from '@angular/core';
import { KatanaService } from '../../katana.service'; // Being used in error-page.component.html (i.e. DO NOT DELETE)

/** An error page to display various client-side errors, and errors received from the server. */
@Component({
    selector: 'app-error-page',
    templateUrl: './error-page.component.html',
    styleUrls: ['./error-page.component.css']
})
export class ErrorPageComponent {

    /** **********************************************************
     * Constructor
     * @param katanaService Collects errors in Katana and allows
     * them to be read and displayed to the user. Used in 
     * error-page.component.html (i.e. DO NOT DELETE)
     ************************************************************/
    constructor(public katanaService: KatanaService) { }

}
<div id="errorPage">

    <h1>{{katanaService.error ? katanaService.error.message : 'There isn\'t any error information available to display'}}</h1>

    <h1>Status: {{katanaService.error ? katanaService.error.status : '---'}}</h1>

    <p>If this error persists, please contact a Katana admin.</p>

</div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""