parent
2f3cb405e8
commit
6f02f76fc2
|
@ -235,7 +235,7 @@ code-example(format="." language="bash").
|
||||||
:marked
|
:marked
|
||||||
The same save method is used for both add and edit since `HeroService` will know when to call `post` vs `put` based on the state of the `Hero` object.
|
The same save method is used for both add and edit since `HeroService` will know when to call `post` vs `put` based on the state of the `Hero` object.
|
||||||
|
|
||||||
After we save a hero, we redirect the browser back to the to the previous page using the `goBack()` method.
|
After we save a hero, we redirect the browser back to the previous page using the `goBack()` method.
|
||||||
|
|
||||||
+makeExample('toh-6/ts/app/hero-detail.component.ts', 'goback', 'app/hero-detail.component.ts (goBack)')(format=".")
|
+makeExample('toh-6/ts/app/hero-detail.component.ts', 'goback', 'app/hero-detail.component.ts (goBack)')(format=".")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue