BETTERZON-33: Created product list component

This commit is contained in:
Patrick Müller 2020-12-01 18:31:45 +01:00
parent 717afca067
commit 7d9fcfd310
5 changed files with 45 additions and 1 deletions

View File

@ -3,11 +3,13 @@ import { NgModule } from '@angular/core';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { HelloWorldComponent } from './hello-world/hello-world.component'; import { HelloWorldComponent } from './hello-world/hello-world.component';
import { ProductListComponentComponent } from './product-list-component/product-list-component.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
HelloWorldComponent HelloWorldComponent,
ProductListComponentComponent
], ],
imports: [ imports: [
BrowserModule BrowserModule

View File

@ -0,0 +1,2 @@
<meta charset="UTF-8">

View File

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProductListComponentComponent } from './product-list-component.component';
describe('ProductListComponentComponent', () => {
let component: ProductListComponentComponent;
let fixture: ComponentFixture<ProductListComponentComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ProductListComponentComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ProductListComponentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-product-list-component',
templateUrl: './product-list-component.component.html',
styleUrls: ['./product-list-component.component.css']
})
export class ProductListComponentComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}