From 0548c870bb8b0da2a7828238a3d38d191f01fb6e Mon Sep 17 00:00:00 2001 From: HarmandI Date: Wed, 15 Dec 2021 15:29:52 +0100 Subject: [PATCH] nav bar component --- src/app/app.component.html | 2 +- src/app/app.module.ts | 4 ++- .../components/nav-bar/nav-bar.component.html | 22 ++++++++++++++++ .../components/nav-bar/nav-bar.component.scss | 0 .../nav-bar/nav-bar.component.spec.ts | 25 +++++++++++++++++++ .../components/nav-bar/nav-bar.component.ts | 15 +++++++++++ 6 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 src/app/components/nav-bar/nav-bar.component.html create mode 100644 src/app/components/nav-bar/nav-bar.component.scss create mode 100644 src/app/components/nav-bar/nav-bar.component.spec.ts create mode 100644 src/app/components/nav-bar/nav-bar.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 215f8a3..435cdfd 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,2 +1,2 @@ -

Hello!

+ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b1c6c96..72e8782 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,10 +3,12 @@ import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; +import { NavBarComponent } from './components/nav-bar/nav-bar.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + NavBarComponent ], imports: [ BrowserModule, diff --git a/src/app/components/nav-bar/nav-bar.component.html b/src/app/components/nav-bar/nav-bar.component.html new file mode 100644 index 0000000..0eed8fc --- /dev/null +++ b/src/app/components/nav-bar/nav-bar.component.html @@ -0,0 +1,22 @@ + diff --git a/src/app/components/nav-bar/nav-bar.component.scss b/src/app/components/nav-bar/nav-bar.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/nav-bar/nav-bar.component.spec.ts b/src/app/components/nav-bar/nav-bar.component.spec.ts new file mode 100644 index 0000000..94e5b30 --- /dev/null +++ b/src/app/components/nav-bar/nav-bar.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NavBarComponent } from './nav-bar.component'; + +describe('NavBarComponent', () => { + let component: NavBarComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ NavBarComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(NavBarComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/nav-bar/nav-bar.component.ts b/src/app/components/nav-bar/nav-bar.component.ts new file mode 100644 index 0000000..6082d5b --- /dev/null +++ b/src/app/components/nav-bar/nav-bar.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-nav-bar', + templateUrl: './nav-bar.component.html', + styleUrls: ['./nav-bar.component.scss'] +}) +export class NavBarComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}