KK
Size: a a a
KK
S
S
VS
S
concat(
getTransactions(),
transactionAdded.pipe(switchMap(() => getTransactions()))
)
S
S
MK
S
MK
MK
MK
import { RESPONSE } from '@nguniversal/express-engine/tokens';
import { Inject, Injectable, Optional } from '@angular/core';
@Injectable()
export class NotFoundService {
constructor(
@Optional()
@Inject(RESPONSE)
private _response: any,
) {}
public setStatus(code: number, message: string): void {
if (this._response) {
this._response.statusCode = code;
this._response.statusMessage = message;
}
}
}
MK
S
MK
MK
MK
S
MK
{
path: '**',
loadChildren: '../app/feature/not-found-page/not-found-page.module#NotFoundPageModule',
data: {
title: '404 - Page Not Found'
}
}
MK