funky-framadate-front/src/app/debugger/debugger.component.ts

29 lines
654 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { ConfigService } from '../services/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;
}
launchToast() {
this.config.handleError({ message: 'hop' });
}
}