feat: add back button and i18n support on 404 page (#1700)

This commit is contained in:
Ashish Kumar Goyal
2023-03-13 09:41:43 -06:00
committed by GitHub
parent 858bd4fd5e
commit c5de9ba30c
8 changed files with 27 additions and 142 deletions
+6 -6
View File
@@ -1,17 +1,17 @@
import { Component, OnInit } from '@angular/core';
declare var particlesJS: any;
import { Component } from '@angular/core';
import {Location} from '@angular/common';
@Component({
selector: 'mifosx-not-found',
templateUrl: './not-found.component.html',
styleUrls: ['./not-found.component.scss']
})
export class NotFoundComponent implements OnInit {
export class NotFoundComponent {
constructor() { }
constructor(private location: Location) {}
ngOnInit() {
particlesJS.load('particles-js', '/assets/particles.json');
goBack(): void {
this.location.back();
}
}