From: Kai Moritz Date: Sun, 5 Jul 2020 11:53:01 +0000 (+0200) Subject: WIP: Extract interaction with store into service X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=0d1009022ba153db601c18bdedc51822831bd01c;p=examples%2Fangular-tour-of-heroes WIP: Extract interaction with store into service --- diff --git a/src/app/vorgang.service.ts b/src/app/vorgang.service.ts index 6d5cca4..ec4025c 100644 --- a/src/app/vorgang.service.ts +++ b/src/app/vorgang.service.ts @@ -54,7 +54,7 @@ export class VorgangService { this.store.dispatch(reset()); } - Observable observe() { + observe(): Observable { return this.store.pipe(select('vorgang'), map(vorgang => vorgang.counter)); }