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

21 lines
279 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
private 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
}
get (name: string) {
return this.data[name]
}
2021-10-29 15:54:54 +01:00
}