mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add service data
This commit is contained in:
@@ -5,5 +5,16 @@ import { Injectable } from '@angular/core';
|
||||
})
|
||||
export class DataService {
|
||||
|
||||
|
||||
private data = {}
|
||||
constructor() { }
|
||||
|
||||
set(name: string, value: any) {
|
||||
this.data[name] = value
|
||||
}
|
||||
|
||||
get (name: string) {
|
||||
return this.data[name]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user