From baecb553a69a10e3a5df5d15114b74e9715e2818 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sat, 15 Apr 2017 17:34:14 +0100 Subject: [PATCH] fix(aio): fix linting issues --- .../contributor/contributor.component.ts | 20 +++++++------------ .../contributor/contributors.model.ts | 2 +- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/aio/src/app/embedded/contributor/contributor.component.ts b/aio/src/app/embedded/contributor/contributor.component.ts index 72eeb7616e..964dcba7c9 100644 --- a/aio/src/app/embedded/contributor/contributor.component.ts +++ b/aio/src/app/embedded/contributor/contributor.component.ts @@ -6,7 +6,7 @@ import { Contributor } from './contributors.model'; selector: 'aio-contributor', template: `
- +
@@ -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; + } } - diff --git a/aio/src/app/embedded/contributor/contributors.model.ts b/aio/src/app/embedded/contributor/contributors.model.ts index c0bcb2dae5..e40983f8d7 100644 --- a/aio/src/app/embedded/contributor/contributors.model.ts +++ b/aio/src/app/embedded/contributor/contributors.model.ts @@ -11,5 +11,5 @@ export class Contributor { website?: string; twitter?: string; bio?: string; - isFlipped?: boolean = false; + isFlipped? = false; }