import { Component, OnInit } from '@angular/core'; import { ConfigService } from '../../../services/config.service'; @Component({ selector: 'app-base-page', templateUrl: './base.component.html', styleUrls: ['./base.component.scss'], }) /** * base page is aware of the state of the filling */ export class BaseComponent implements OnInit { constructor(public config: ConfigService) {} ngOnInit(): void {} public checkValidity(): boolean { // TODO with form controls this.config.todo(); return true; } public displayErrorMessage(): boolean { // TODO this.config.todo(); return true; } }