From e7c883ae98be21121a4748f044339eba6ba4166e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 28 Oct 2016 07:44:47 +0200 Subject: [PATCH] Add component for the header bar --- app/app.component.html | 1 + app/app.module.ts | 4 +++- app/header.component.html | 26 ++++++++++++++++++++++++++ app/header.component.ts | 12 ++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 app/header.component.html create mode 100644 app/header.component.ts diff --git a/app/app.component.html b/app/app.component.html index 85ae5ad..6665d52 100644 --- a/app/app.component.html +++ b/app/app.component.html @@ -1,3 +1,4 @@ + Dashboard Ducks diff --git a/app/app.module.ts b/app/app.module.ts index 882df90..b057e3f 100644 --- a/app/app.module.ts +++ b/app/app.module.ts @@ -12,6 +12,7 @@ import { AppComponent } from "./app.component"; import { DuckDetailComponent } from "./duck-detail.component"; import { DashboardComponent } from "./dashboard.component"; import { DucksComponent } from "./ducks.component"; +import { HeaderComponent } from "./header.component"; import { DuckService } from "./duck.service"; import { UserService } from "./user.service"; @@ -27,7 +28,8 @@ import { UserService } from "./user.service"; AppComponent, DashboardComponent, DuckDetailComponent, - DucksComponent + DucksComponent, + HeaderComponent ], providers: [ DuckService, diff --git a/app/header.component.html b/app/header.component.html new file mode 100644 index 0000000..5daff73 --- /dev/null +++ b/app/header.component.html @@ -0,0 +1,26 @@ +
+ +
diff --git a/app/header.component.ts b/app/header.component.ts new file mode 100644 index 0000000..84bd40e --- /dev/null +++ b/app/header.component.ts @@ -0,0 +1,12 @@ +import { Component } from "@angular/core"; + +import { UserService } from "./user.service"; + +@Component({ + moduleId: module.id, + selector: "duckbook-header", + templateUrl: "header.component.html" +}) +export class HeaderComponent { + constructor(private userService: UserService) {} +}