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

27 lines
570 B
TypeScript
Raw Normal View History

2019-08-10 16:21:12 +02:00
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 {
2019-08-11 16:21:49 +02:00
formIsValid = true;
2019-08-10 16:21:12 +02:00
2019-08-11 16:21:49 +02:00
constructor(public config: ConfigService) {
2019-08-10 16:21:12 +02:00
}
ngOnInit() {
}
selectOption(key: string, val: any) {
if (!this.config[key]) {
return false;
}
this.config[key] = val;
return true;
}
}