diff --git a/Frontend/src/app/app.module.ts b/Frontend/src/app/app.module.ts index 83b30d8..9acb4c6 100644 --- a/Frontend/src/app/app.module.ts +++ b/Frontend/src/app/app.module.ts @@ -4,10 +4,11 @@ import {NgModule} from '@angular/core'; import {AppComponent} from './app.component'; import {AppRouting} from './app.routing'; -import {ProductListComponent} from './product-list/product-list.component'; -import { LandingpageComponent } from './landingpage/landingpage.component'; -import { ProductDetailPageComponent } from './product-detail-page/product-detail-page.component'; -import { FooterComponent } from './footer/footer.component'; +import {ProductListComponent} from './components/product-list/product-list.component'; +import { LandingpageComponent } from './components/landingpage/landingpage.component'; +import { ProductDetailPageComponent } from './components/product-detail-page/product-detail-page.component'; +import { FooterComponent } from './components/footer/footer.component'; +import { ProductDetailsComponent } from './components/product-details/product-details.component'; @NgModule({ declarations: [ @@ -15,7 +16,8 @@ import { FooterComponent } from './footer/footer.component'; ProductListComponent, LandingpageComponent, ProductDetailPageComponent, - FooterComponent + FooterComponent, + ProductDetailsComponent ], imports: [ BrowserModule, diff --git a/Frontend/src/app/app.routing.ts b/Frontend/src/app/app.routing.ts index f34925f..9f175a5 100644 --- a/Frontend/src/app/app.routing.ts +++ b/Frontend/src/app/app.routing.ts @@ -2,9 +2,9 @@ import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {RouterModule, Routes} from '@angular/router'; import {AppComponent} from './app.component'; -import {ProductListComponent} from './product-list/product-list.component'; -import {LandingpageComponent} from './landingpage/landingpage.component'; -import {ProductDetailPageComponent} from './product-detail-page/product-detail-page.component'; +import {ProductListComponent} from './components/product-list/product-list.component'; +import {LandingpageComponent} from './components/landingpage/landingpage.component'; +import {ProductDetailPageComponent} from './components/product-detail-page/product-detail-page.component'; const routes: Routes = [ {path: '', component: LandingpageComponent}, diff --git a/Frontend/src/app/footer/footer.component.css b/Frontend/src/app/components/footer/footer.component.css similarity index 100% rename from Frontend/src/app/footer/footer.component.css rename to Frontend/src/app/components/footer/footer.component.css diff --git a/Frontend/src/app/footer/footer.component.html b/Frontend/src/app/components/footer/footer.component.html similarity index 100% rename from Frontend/src/app/footer/footer.component.html rename to Frontend/src/app/components/footer/footer.component.html diff --git a/Frontend/src/app/footer/footer.component.spec.ts b/Frontend/src/app/components/footer/footer.component.spec.ts similarity index 100% rename from Frontend/src/app/footer/footer.component.spec.ts rename to Frontend/src/app/components/footer/footer.component.spec.ts diff --git a/Frontend/src/app/footer/footer.component.ts b/Frontend/src/app/components/footer/footer.component.ts similarity index 100% rename from Frontend/src/app/footer/footer.component.ts rename to Frontend/src/app/components/footer/footer.component.ts diff --git a/Frontend/src/app/landingpage/landingpage.component.css b/Frontend/src/app/components/landingpage/landingpage.component.css similarity index 100% rename from Frontend/src/app/landingpage/landingpage.component.css rename to Frontend/src/app/components/landingpage/landingpage.component.css diff --git a/Frontend/src/app/landingpage/landingpage.component.html b/Frontend/src/app/components/landingpage/landingpage.component.html similarity index 100% rename from Frontend/src/app/landingpage/landingpage.component.html rename to Frontend/src/app/components/landingpage/landingpage.component.html diff --git a/Frontend/src/app/landingpage/landingpage.component.spec.ts b/Frontend/src/app/components/landingpage/landingpage.component.spec.ts similarity index 100% rename from Frontend/src/app/landingpage/landingpage.component.spec.ts rename to Frontend/src/app/components/landingpage/landingpage.component.spec.ts diff --git a/Frontend/src/app/landingpage/landingpage.component.ts b/Frontend/src/app/components/landingpage/landingpage.component.ts similarity index 100% rename from Frontend/src/app/landingpage/landingpage.component.ts rename to Frontend/src/app/components/landingpage/landingpage.component.ts diff --git a/Frontend/src/app/product-detail-page/product-detail-page.component.css b/Frontend/src/app/components/product-detail-page/product-detail-page.component.css similarity index 100% rename from Frontend/src/app/product-detail-page/product-detail-page.component.css rename to Frontend/src/app/components/product-detail-page/product-detail-page.component.css diff --git a/Frontend/src/app/product-detail-page/product-detail-page.component.html b/Frontend/src/app/components/product-detail-page/product-detail-page.component.html similarity index 100% rename from Frontend/src/app/product-detail-page/product-detail-page.component.html rename to Frontend/src/app/components/product-detail-page/product-detail-page.component.html diff --git a/Frontend/src/app/product-detail-page/product-detail-page.component.spec.ts b/Frontend/src/app/components/product-detail-page/product-detail-page.component.spec.ts similarity index 100% rename from Frontend/src/app/product-detail-page/product-detail-page.component.spec.ts rename to Frontend/src/app/components/product-detail-page/product-detail-page.component.spec.ts diff --git a/Frontend/src/app/product-detail-page/product-detail-page.component.ts b/Frontend/src/app/components/product-detail-page/product-detail-page.component.ts similarity index 100% rename from Frontend/src/app/product-detail-page/product-detail-page.component.ts rename to Frontend/src/app/components/product-detail-page/product-detail-page.component.ts diff --git a/Frontend/src/app/components/product-details/product-details.component.css b/Frontend/src/app/components/product-details/product-details.component.css new file mode 100644 index 0000000..e69de29 diff --git a/Frontend/src/app/components/product-details/product-details.component.html b/Frontend/src/app/components/product-details/product-details.component.html new file mode 100644 index 0000000..b8bfedf --- /dev/null +++ b/Frontend/src/app/components/product-details/product-details.component.html @@ -0,0 +1 @@ +
product-details works!
diff --git a/Frontend/src/app/components/product-details/product-details.component.spec.ts b/Frontend/src/app/components/product-details/product-details.component.spec.ts new file mode 100644 index 0000000..4181ef9 --- /dev/null +++ b/Frontend/src/app/components/product-details/product-details.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ProductDetailsComponent } from './product-details.component'; + +describe('ProductDetailsComponent', () => { + let component: ProductDetailsComponent; + let fixture: ComponentFixture