Files
doneit-web/src/app/pages/not-found/not-found.page.ts
T

23 lines
577 B
TypeScript
Raw Normal View History

2023-11-29 16:12:30 +01:00
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ToastService } from 'src/app/services/toast.service';
@Component({
selector: 'app-not-found',
templateUrl: './not-found.page.html',
styleUrls: ['./not-found.page.scss'],
})
export class NotFoundPage implements OnInit {
constructor(
private router: Router,
private toastService: ToastService,
) { }
ngOnInit() {
this.router.navigate(['/home/events']);
2023-12-06 13:14:41 +01:00
this.toastService._badRequest("Página não encontrada. Contacte o suporte técnico")
2023-11-29 16:12:30 +01:00
}
}