forked from tykayn/funky-framadate-front
28 lines
525 B
TypeScript
28 lines
525 B
TypeScript
import {Injectable} from '@angular/core';
|
|
import {PollConfig} from './config/PollConfig';
|
|
|
|
|
|
/**
|
|
* le service transverse à chaque page qui permet de syncroniser la configuration de sondage souhaitée
|
|
*/
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ConfigService extends PollConfig {
|
|
|
|
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
set(key, val) {
|
|
this[key] = val;
|
|
}
|
|
|
|
sendForm() {
|
|
// todo
|
|
console.log('sends the form');
|
|
alert('envoi de formulaire en XHR à faire');
|
|
}
|
|
}
|