// to store data this._storageService.store( key, // as string object // any object to store ); // to retrieve data this._storageService .get() .pipe( filter(({ key }) => key === KEY_AS_STRING), map((data) => { return JSON.parse(data.value) as Object; }) ) .subscribe((data) => { // use data });