MT
Size: a a a
MT
DB
MT
.pipe(catchError(() => {...}))ST
| async, или вы не об этом?Вキ
MT
Вキ
MT
asyncProp$ = new Subject()
...
this.service.getSmth().subscribe(data => this.asyncProp$.next(data))
Вキ
asyncProp$ = new Subject()
...
this.service.getSmth().subscribe(data => this.asyncProp$.next(data))
MT
G
const testJson = JSON.stringify({
id: 123,
firstName: 'string',
lastName: 'string',
});
mockLocalStorage.setItem('user', testJson);G
МВ
const testJson = JSON.stringify({
id: 123,
firstName: 'string',
lastName: 'string',
});
mockLocalStorage.setItem('user', testJson);S
G
const mockLocalStorage = {
getItem: (key: string) => (store[key] ? JSON.parse(store[key]) : null),
setItem: (key: string, value: string) => (store[key] = value),
};G
S
S
AE