Files
doneit-web/src/app/services/data.service.ts
T
Peter Maquiran f51bd246fc fix ubgs
2023-09-19 10:21:23 +01:00

30 lines
387 B
TypeScript

import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class DataService {
public task: any;
data = {}
constructor() { }
set(name: string, value: any) {
this.data[name] = value
}
get (name: string): any {
return this.data[name]
}
delate(name: string) {
delete this.data[name]
}
clear() {
this.data = {}
}
}