fix(aio): fix linting issues

This commit is contained in:
Peter Bacon Darwin 2017-04-15 17:34:14 +01:00 committed by Tobias Bosch
parent 6e89f0bf8d
commit baecb553a6
2 changed files with 8 additions and 14 deletions

View File

@ -6,7 +6,7 @@ import { Contributor } from './contributors.model';
selector: 'aio-contributor',
template: `
<div [ngClass]="{ 'flipped': person.isFlipped }" class="contributor-card">
<div class="card-front" (click)="flipCard(person)">
<div *ngIf="person.picture" class="contributor-image" [style.background-image]="'url('+pictureBase+person.picture+')'">
</div>
@ -35,17 +35,11 @@ import { Contributor } from './contributors.model';
`
})
export class ContributorComponent {
@Input() person: Contributor;
noPicture = '_no-one.png';
pictureBase = 'content/images/bios/';
flipCard(person){
if(person.isFlipped==true){
person.isFlipped=false;
}else{
person.isFlipped=true;
}
}
@Input() person: Contributor;
noPicture = '_no-one.png';
pictureBase = 'content/images/bios/';
flipCard(person) {
person.isFlipped = !person.isFlipped;
}
}

View File

@ -11,5 +11,5 @@ export class Contributor {
website?: string;
twitter?: string;
bio?: string;
isFlipped?: boolean = false;
isFlipped? = false;
}