2019-08-10 16:20:59 +02:00
|
|
|
import {Component, OnInit} from '@angular/core';
|
|
|
|
import {ConfigService} from '../../config.service';
|
2019-08-09 15:14:23 +02:00
|
|
|
|
|
|
|
@Component({
|
2019-08-10 16:20:59 +02:00
|
|
|
selector: 'framadate-base-page',
|
2019-08-10 16:57:36 +02:00
|
|
|
templateUrl: './base.component.html',
|
|
|
|
styleUrls: ['./base.component.scss']
|
2019-08-09 15:14:23 +02:00
|
|
|
})
|
2019-08-09 17:43:23 +02:00
|
|
|
/**
|
|
|
|
* base page is aware of the state of the filling
|
|
|
|
*/
|
2019-08-10 16:57:36 +02:00
|
|
|
export class BaseComponent implements OnInit {
|
2019-08-09 15:14:23 +02:00
|
|
|
|
2019-08-11 16:21:49 +02:00
|
|
|
constructor(config: ConfigService) {
|
2019-08-10 16:20:59 +02:00
|
|
|
}
|
2019-08-09 15:14:23 +02:00
|
|
|
|
2019-08-10 16:20:59 +02:00
|
|
|
ngOnInit() {
|
|
|
|
}
|
2019-08-09 15:14:23 +02:00
|
|
|
|
2019-08-10 17:41:01 +02:00
|
|
|
|
|
|
|
checkValidity() {
|
|
|
|
// TODO with form controls
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
displayErrorMessage() {
|
|
|
|
// TODO
|
|
|
|
return true;
|
|
|
|
}
|
2019-08-09 15:14:23 +02:00
|
|
|
}
|