mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-22 14:23:57 +00:00
BETTERZON-41: Adding PDP Component
This commit is contained in:
parent
4100192f02
commit
cbe8ad8f00
|
@ -6,12 +6,14 @@ import {AppComponent} from './app.component';
|
||||||
import {AppRouting} from './app.routing';
|
import {AppRouting} from './app.routing';
|
||||||
import {ProductListComponent} from './product-list/product-list.component';
|
import {ProductListComponent} from './product-list/product-list.component';
|
||||||
import { LandingpageComponent } from './landingpage/landingpage.component';
|
import { LandingpageComponent } from './landingpage/landingpage.component';
|
||||||
|
import { ProductDetailPageComponent } from './product-detail-page/product-detail-page.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
ProductListComponent,
|
ProductListComponent,
|
||||||
LandingpageComponent
|
LandingpageComponent,
|
||||||
|
ProductDetailPageComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
|
@ -4,10 +4,11 @@ import {RouterModule, Routes} from '@angular/router';
|
||||||
import {AppComponent} from './app.component';
|
import {AppComponent} from './app.component';
|
||||||
import {ProductListComponent} from './product-list/product-list.component';
|
import {ProductListComponent} from './product-list/product-list.component';
|
||||||
import {LandingpageComponent} from './landingpage/landingpage.component';
|
import {LandingpageComponent} from './landingpage/landingpage.component';
|
||||||
|
import {ProductDetailPageComponent} from './product-detail-page/product-detail-page.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: '', component: LandingpageComponent},
|
{path: '', component: LandingpageComponent},
|
||||||
{path: 'pdp', component: ProductListComponent}
|
{path: 'product', component: ProductDetailPageComponent}
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<p>product-detail-page works!</p>
|
|
@ -0,0 +1,25 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ProductDetailPageComponent } from './product-detail-page.component';
|
||||||
|
|
||||||
|
describe('ProductDetailPageComponent', () => {
|
||||||
|
let component: ProductDetailPageComponent;
|
||||||
|
let fixture: ComponentFixture<ProductDetailPageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ ProductDetailPageComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(ProductDetailPageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1,15 @@
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-product-detail-page',
|
||||||
|
templateUrl: './product-detail-page.component.html',
|
||||||
|
styleUrls: ['./product-detail-page.component.css']
|
||||||
|
})
|
||||||
|
export class ProductDetailPageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user