Files
doneit-web/src/app/services/data.service.ts
T

21 lines
274 B
TypeScript
Raw Normal View History

2021-10-29 15:54:54 +01:00
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class DataService {
2021-10-29 15:55:05 +01:00
2022-09-28 16:33:13 +01:00
data = {}
2021-10-29 15:54:54 +01:00
constructor() { }
2021-10-29 15:55:05 +01:00
set(name: string, value: any) {
this.data[name] = value
}
2021-10-29 15:57:42 +01:00
get (name: string): any {
2021-10-29 15:55:05 +01:00
return this.data[name]
}
2021-10-29 15:57:42 +01:00
2021-10-29 15:54:54 +01:00
}