Skip to content

Commit

Permalink
feat(hero list): replace all [ngClass] appearances to [class.name] way
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismaestro authored and Ismael Ramos committed Apr 18, 2018
1 parent d95ba51 commit fc2f15f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/heroes/hero-list/hero-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <h2 class="section-title">{{ 'heroesList' | translate }}</h2>
src="assets/images/heroes/{{hero.id}}-thumbnail.jpg">
<img *ngIf="!hero.default"
(click)="seeHeroDetails(hero);" mat-list-avatar src="assets/images/heroes/default.png">
<h3 mat-line [ngClass]="{'cp': hero.default}" (click)="seeHeroDetails(hero);"> {{hero.name}} </h3>
<p mat-line [ngClass]="{'cp': hero.default}" (click)="seeHeroDetails(hero);">
<h3 mat-line [class.cp]="hero.default" (click)="seeHeroDetails(hero);"> {{hero.name}} </h3>
<p mat-line [class.cp]="hero.default" (click)="seeHeroDetails(hero);">
<span>{{hero.alterEgo}}</span>
</p>
<div class="hero-actions">
Expand Down

0 comments on commit fc2f15f

Please sign in to comment.