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