From 8f05ca415296cae82f5c1968c4f740dab0850465 Mon Sep 17 00:00:00 2001 From: pmartin Date: Tue, 3 Oct 2017 19:45:58 +0200 Subject: [PATCH 1/3] Replace class with interface --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 55a562c0..ab0398e4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,9 +1,9 @@ import { Component } from '@angular/core'; -class Menu { +interface Menu { title: string; link: string; - options: { exact: boolean }; + options: { exact: boolean }; } @Component({ From d86c1ede48c7355162ee5398dd35e57bbd7e6e5f Mon Sep 17 00:00:00 2001 From: pmartin Date: Tue, 3 Oct 2017 19:45:58 +0200 Subject: [PATCH 2/3] Replace class with interface --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 55a562c0..ab0398e4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,9 +1,9 @@ import { Component } from '@angular/core'; -class Menu { +interface Menu { title: string; link: string; - options: { exact: boolean }; + options: { exact: boolean }; } @Component({ From c88c397bcc5857805094cbafbd29e63462e22121 Mon Sep 17 00:00:00 2001 From: pmartin Date: Wed, 4 Oct 2017 20:18:36 +0200 Subject: [PATCH 3/3] make lint pass --- src/app/app.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ab0398e4..028157fb 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -13,25 +13,25 @@ interface Menu { }) export class AppComponent { menus: Menu[] = [ - { + { title: 'Home', link: '/', options: { exact: true } }, - { + { title: 'Operators', link: '/operators', options: { exact: false } }, - { + { title: 'Companies', link: '/companies', options: { exact: false } }, - { + { title: 'Team', link: '/team', options: { exact: false } } - ] + ]; }