Skip to content

Commit 29932b2

Browse files
IsmaestroIsmael Ramos
authored andcommitted
feat(hero detail): added hero json
1 parent 238afe5 commit 29932b2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app/heroes/hero-detail/hero-detail.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ <h1 class="section-title">{{'heroDetail' | translate}}</h1>
2323
</mat-card-header>
2424
<img mat-card-image src="assets/images/heroes/{{hero.id}}.jpg">
2525
</mat-card>
26+
27+
<div id="hero-json">
28+
<pre>{{hero | json}}</pre>
29+
</div>
2630
</ng-container>
2731
</div>
2832

src/app/heroes/hero-list/hero-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h2 class="section-title">{{ 'createHero' | translate }}</h2>
5959

6060
<div id="heroes-json">
6161
<h2 class="section-title">{{ 'firstTwoHeroesById' | translate }}</h2>
62-
<pre>{{heroes | slice:1:3 | json}}</pre>
62+
<pre>{{heroes | slice:0:2 | json}}</pre>
6363
</div>
6464
</div>
6565
<div class="clear"></div>

0 commit comments

Comments
 (0)