forked from tykayn/funky-framadate-front
📖 update refacto utilities as services
This commit is contained in:
parent
c5b5276400
commit
44424d378a
@ -1,3 +1,8 @@
|
||||
import {Injectable} from "@angular/core";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class DateUtilities {
|
||||
|
||||
/**
|
||||
|
@ -64,9 +64,6 @@ export class PollConfig {
|
||||
|
||||
answers: any = defaultAnswers;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
resetConfig() {
|
||||
const self = this;
|
||||
Object.keys(baseConfigValues).forEach((key) => {
|
||||
|
@ -1,6 +1,10 @@
|
||||
import {HttpHeaders} from "@angular/common/http";
|
||||
import {PollConfig} from "./PollConfig";
|
||||
import {Injectable} from "@angular/core";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class PollUtilities {
|
||||
// utils functions
|
||||
/**
|
||||
|
@ -1,7 +1,3 @@
|
||||
@import "../../../assets/scss/variables";
|
||||
|
||||
.submit-votestack {
|
||||
position: fixed;
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
.submit-votestack {
|
||||
position: fixed;
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user