mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
21 lines
274 B
TypeScript
21 lines
274 B
TypeScript
import { Injectable } from '@angular/core';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class DataService {
|
|
|
|
|
|
data = {}
|
|
constructor() { }
|
|
|
|
set(name: string, value: any) {
|
|
this.data[name] = value
|
|
}
|
|
|
|
get (name: string): any {
|
|
return this.data[name]
|
|
}
|
|
|
|
}
|