Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
Simon Konrad
angular
Commits
3bbd989f
Commit
3bbd989f
authored
Apr 14, 2021
by
Simon Konrad
Browse files
final app
parent
bb944415
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/hero-detail/hero-detail.component.ts
View file @
3bbd989f
...
...
@@ -25,7 +25,7 @@ export class HeroDetailComponent implements OnInit {
getHero
():
void
{
const
id
=
this
.
route
.
snapshot
.
paramMap
.
get
(
'
id
'
);
//
this.heroService.getHero(
id
).subscribe(hero => this.hero = hero);
this
.
heroService
.
getHero
(
13
).
subscribe
(
hero
=>
this
.
hero
=
hero
);
}
goBack
():
void
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment