diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts new file mode 100644 index 0000000..5c2c181 --- /dev/null +++ b/src/app/app-routing.module.ts @@ -0,0 +1,19 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import {Einkaufszettel1Component} from "./components/einkaufszettel1/einkaufszettel1.component"; +import {HomeComponent} from "./components/home/home.component"; +import {Einkaufszettel2Component} from "./components/einkaufszettel2/einkaufszettel2.component"; + +const routes: Routes = [ + { path: '', redirectTo: 'home', pathMatch: 'full'}, + { path: 'home', component: HomeComponent}, + { path: 'einkaufszettel1', component: Einkaufszettel1Component}, + { path: 'einkaufszettel2', component: Einkaufszettel2Component}, + { path: '**', redirectTo: 'home'} +]; + +@NgModule({ + imports: [RouterModule.forRoot(routes)], + exports: [RouterModule] +}) +export class AppRoutingModule { } diff --git a/src/app/components/einkaufszettel1/einkaufszettel1.component.css b/src/app/components/einkaufszettel1/einkaufszettel1.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/einkaufszettel1/einkaufszettel1.component.html b/src/app/components/einkaufszettel1/einkaufszettel1.component.html new file mode 100644 index 0000000..1426628 --- /dev/null +++ b/src/app/components/einkaufszettel1/einkaufszettel1.component.html @@ -0,0 +1,2 @@ +

Einkaufszettel1

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