📖 update refacto utilities as services

This commit is contained in:
Baptiste Lemoine 2020-02-05 11:19:03 +01:00
parent c5b5276400
commit 44424d378a
5 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,8 @@
import {Injectable} from "@angular/core";
@Injectable({
providedIn: 'root'
})
export class DateUtilities { export class DateUtilities {
/** /**

View File

@ -64,9 +64,6 @@ export class PollConfig {
answers: any = defaultAnswers; answers: any = defaultAnswers;
constructor() {
}
resetConfig() { resetConfig() {
const self = this; const self = this;
Object.keys(baseConfigValues).forEach((key) => { Object.keys(baseConfigValues).forEach((key) => {

View File

@ -1,6 +1,10 @@
import {HttpHeaders} from "@angular/common/http"; import {HttpHeaders} from "@angular/common/http";
import {PollConfig} from "./PollConfig"; import {PollConfig} from "./PollConfig";
import {Injectable} from "@angular/core";
@Injectable({
providedIn: 'root'
})
export class PollUtilities { export class PollUtilities {
// utils functions // utils functions
/** /**

View File

@ -1,7 +1,3 @@
@import "../../../assets/scss/variables"; @import "../../../assets/scss/variables";
.submit-votestack {
position: fixed;
bottom: 5px;
right: 5px;
}

View File

@ -0,0 +1,5 @@
.submit-votestack {
position: fixed;
bottom: 5px;
right: 5px;
}