projects
/
examples
/
angular-tour-of-heroes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673c7c0
)
WIP: Extract interaction with store into service
author
Kai Moritz
<kai@juplo.de>
Sun, 5 Jul 2020 11:53:01 +0000
(13:53 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 5 Jul 2020 11:53:01 +0000
(13:53 +0200)
src/app/vorgang.service.ts
patch
|
blob
|
history
diff --git
a/src/app/vorgang.service.ts
b/src/app/vorgang.service.ts
index
6d5cca4
..
ec4025c
100644
(file)
--- a/
src/app/vorgang.service.ts
+++ b/
src/app/vorgang.service.ts
@@
-54,7
+54,7
@@
export class VorgangService {
this.store.dispatch(reset());
}
-
Observable<number> observe()
{
+
observe(): Observable<number>
{
return this.store.pipe(select('vorgang'), map(vorgang => vorgang.counter));
}