Add SentComponent for form submission confirmation and integrate with email verification flow
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Router} from '@angular/router';
|
||||
import {HeaderComponent} from '@header/header.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-sent',
|
||||
imports: [
|
||||
HeaderComponent
|
||||
],
|
||||
templateUrl: './sent.component.html',
|
||||
styleUrl: './sent.component.scss',
|
||||
standalone: true
|
||||
})
|
||||
export class SentComponent implements OnInit {
|
||||
protected message: string = "The form is completed and has been sent";
|
||||
|
||||
constructor(private router: Router) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
const navigation = this.router.getCurrentNavigation();
|
||||
const state = navigation?.extras.state as { message: string };
|
||||
|
||||
if (state?.message) {
|
||||
this.message = state.message;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user