Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 93x 93x 93x 4x 4x 4x 1x 1x 1x 1x | import { Loader, Router } from '@zeedhi/core';
import { Frame } from '../zd-frame/frame';
import { IFramePage } from './interfaces';
export class FramePage extends Frame implements IFramePage {
/**
* Set "NotFound" to the frame
*/
public notFoundRoute = '/notfound';
constructor(props: IFramePage) {
super(props);
this.notFoundRoute = this.getInitValue('notFoundRoute', props.notFoundRoute, this.notFoundRoute);
}
/**
* Triggered before the component is destroyed.
*/
public onBeforeDestroy() {
super.onBeforeDestroy();
Loader.clearInstances();
}
protected notFoundError(e: unknown): void {
super.notFoundError(e);
Router.replace(this.notFoundRoute);
}
}
|