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:
9743d3a
)
Log-Meldung für den Zustands-Übergang, den der Reducer erzeugt
direkt
author
Kai Moritz
<kai@juplo.de>
Sun, 5 Jul 2020 11:16:16 +0000
(13:16 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 5 Jul 2020 11:16:16 +0000
(13:16 +0200)
src/app/reducers/vorgang.ts
patch
|
blob
|
history
diff --git
a/src/app/reducers/vorgang.ts
b/src/app/reducers/vorgang.ts
index
d5d95e6
..
efeecd0
100644
(file)
--- a/
src/app/reducers/vorgang.ts
+++ b/
src/app/reducers/vorgang.ts
@@
-11,6
+11,7
@@
export const initialState: State = { vorgaenge : [] };
const REDUCER = createReducer(
initialState,
on(create, (state, props) => {
+ console.log(`Old state: ${JSON.stringify(state)}, props: ${JSON.stringify(props)}`);
const vorgaenge: Vorgang[] = [ props.vorgang ];
state.vorgaenge.forEach(val => vorgaenge.push(Object.assign({}, val)));
return { vorgaenge };