From: Kai Moritz Date: Fri, 20 Dec 2019 14:27:23 +0000 (+0100) Subject: Top-Bar aus offiziellem Getting-Started Tutorial übernommen X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7b128c4886ec1dbe8c9f036b447ce2a2697b61a9;p=examples%2Fangular-tutorial Top-Bar aus offiziellem Getting-Started Tutorial übernommen --- 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() { + } + +}