From: Kai Moritz Date: Fri, 26 Jun 2020 11:30:49 +0000 (+0200) Subject: ng generate component vorgang X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=19c4e709fac3a3b73f4bc2cdbebe0f1319195728;p=examples%2Fangular-tour-of-heroes ng generate component vorgang --- diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f657163..a8cb5c1 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 { VorgangComponent } from './vorgang/vorgang.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + VorgangComponent ], imports: [ BrowserModule diff --git a/src/app/vorgang/vorgang.component.css b/src/app/vorgang/vorgang.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/vorgang/vorgang.component.html b/src/app/vorgang/vorgang.component.html new file mode 100644 index 0000000..d5c622f --- /dev/null +++ b/src/app/vorgang/vorgang.component.html @@ -0,0 +1 @@ +

vorgang works!

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