import {Component, OnInit} from '@angular/core'; import {ConfigService} from '../config.service'; @Component({ selector: 'framadate-debugger', templateUrl: './debugger.component.html', styleUrls: ['./debugger.component.scss'] }) export class DebuggerComponent implements OnInit { formIsValid = true; constructor(public config: ConfigService) { } ngOnInit() { } selectOption(key: string, val: any) { if (!this.config[key]) { return false; } this.config[key] = val; return true; } }