From 7b128c4886ec1dbe8c9f036b447ce2a2697b61a9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 20 Dec 2019 15:27:23 +0100 Subject: [PATCH] =?utf8?q?Top-Bar=20aus=20offiziellem=20Getting-Started=20?= =?utf8?q?Tutorial=20=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/app/app.component.html | 2 ++ src/app/app.module.ts | 4 +++- src/app/top-bar/top-bar.component.css | 0 src/app/top-bar/top-bar.component.html | 5 +++++ src/app/top-bar/top-bar.component.spec.ts | 25 +++++++++++++++++++++++ src/app/top-bar/top-bar.component.ts | 15 ++++++++++++++ 6 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/app/top-bar/top-bar.component.css create mode 100644 src/app/top-bar/top-bar.component.html create mode 100644 src/app/top-bar/top-bar.component.spec.ts create mode 100644 src/app/top-bar/top-bar.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index a1c7110..e7d2b67 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,3 +1,5 @@ + +

Hallo Welt!

diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f657163..345cda3 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -2,10 +2,12 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; +import { TopBarComponent } from './top-bar/top-bar.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + TopBarComponent ], imports: [ BrowserModule diff --git a/src/app/top-bar/top-bar.component.css b/src/app/top-bar/top-bar.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/top-bar/top-bar.component.html b/src/app/top-bar/top-bar.component.html new file mode 100644 index 0000000..d021aa7 --- /dev/null +++ b/src/app/top-bar/top-bar.component.html @@ -0,0 +1,5 @@ + +

Peter Penis

+
+ +shopping_cartCheckout diff --git a/src/app/top-bar/top-bar.component.spec.ts b/src/app/top-bar/top-bar.component.spec.ts new file mode 100644 index 0000000..7629c73 --- /dev/null +++ b/src/app/top-bar/top-bar.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TopBarComponent } from './top-bar.component'; + +describe('TopBarComponent', () => { + let component: TopBarComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ TopBarComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(TopBarComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/top-bar/top-bar.component.ts b/src/app/top-bar/top-bar.component.ts new file mode 100644 index 0000000..e531b08 --- /dev/null +++ b/src/app/top-bar/top-bar.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-top-bar', + templateUrl: './top-bar.component.html', + styleUrls: ['./top-bar.component.css'] +}) +export class TopBarComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} -- 2.20.1