import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { TranslationContentService } from 'src/constants/language/TranslationContentService'; import { RouterService } from '../shared/services/routerService'; import {InputSwitchModule} from 'primeng/inputswitch'; @Component({ selector: 'app-customizable-form', templateUrl: './customizable-form.component.html', styleUrls: ['./customizable-form.component.scss'] }) export class CustomizableFormComponent implements OnInit { public showAlertBox:boolean = false; public languageConstants:any = ''; checked1: boolean = false; constructor(private routerService: RouterService, private router: Router, private translationContentService:TranslationContentService) { } ngOnInit(): void { this.translationContentService.getContent().subscribe((content: any) => { this.languageConstants = Object.assign({}, content); }); } onSubmitForm():void{ this.showAlertBox = true; } onReviewSubmit():void{ this.router.navigate(['flexiLeave']); } handleChange(e:any) { let isChecked = e.checked; } }