diff --git a/Frontend/src/app/app.module.ts b/Frontend/src/app/app.module.ts index ba1c06c..f1302d9 100644 --- a/Frontend/src/app/app.module.ts +++ b/Frontend/src/app/app.module.ts @@ -3,19 +3,19 @@ import {HttpClientModule} from '@angular/common/http'; import {NgModule} from '@angular/core'; import {AppComponent} from './app.component'; -import {HelloWorldComponent} from './hello-world/hello-world.component'; -import {AppRoutingModule} from './app-routing.module'; +import {AppRouting} from './app.routing'; import {ProductListComponent} from './product-list/product-list.component'; +import { LandingpageComponent } from './landingpage/landingpage.component'; @NgModule({ declarations: [ AppComponent, - HelloWorldComponent, - ProductListComponent + ProductListComponent, + LandingpageComponent ], imports: [ BrowserModule, - AppRoutingModule, + AppRouting, HttpClientModule ], providers: [], diff --git a/Frontend/src/app/app-routing.module.ts b/Frontend/src/app/app.routing.ts similarity index 70% rename from Frontend/src/app/app-routing.module.ts rename to Frontend/src/app/app.routing.ts index 4978f7c..7b4312a 100644 --- a/Frontend/src/app/app-routing.module.ts +++ b/Frontend/src/app/app.routing.ts @@ -1,13 +1,12 @@ import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {RouterModule, Routes} from '@angular/router'; -import {HelloWorldComponent} from './hello-world/hello-world.component'; import {AppComponent} from './app.component'; import {ProductListComponent} from './product-list/product-list.component'; +import {LandingpageComponent} from './landingpage/landingpage.component'; const routes: Routes = [ - {path: '', component: AppComponent}, - {path: 'helloworld', component: HelloWorldComponent}, + {path: '', component: LandingpageComponent}, {path: 'pdp', component: ProductListComponent} ]; @@ -20,5 +19,5 @@ const routes: Routes = [ RouterModule ] }) -export class AppRoutingModule { +export class AppRouting { } diff --git a/Frontend/src/app/hello-world/hello-world.component.html b/Frontend/src/app/hello-world/hello-world.component.html deleted file mode 100644 index c18b9ab..0000000 --- a/Frontend/src/app/hello-world/hello-world.component.html +++ /dev/null @@ -1,2 +0,0 @@ -
hello-world works! Title:
-Blog diff --git a/Frontend/src/app/hello-world/hello-world.component.ts b/Frontend/src/app/hello-world/hello-world.component.ts deleted file mode 100644 index e3dd2e1..0000000 --- a/Frontend/src/app/hello-world/hello-world.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-hello-world', - templateUrl: './hello-world.component.html', - styleUrls: ['./hello-world.component.css'] -}) -export class HelloWorldComponent implements OnInit { - - constructor() { } - - ngOnInit(): void { - } - -} diff --git a/Frontend/src/app/hello-world/hello-world.component.css b/Frontend/src/app/landingpage/landingpage.component.css similarity index 100% rename from Frontend/src/app/hello-world/hello-world.component.css rename to Frontend/src/app/landingpage/landingpage.component.css diff --git a/Frontend/src/app/landingpage/landingpage.component.html b/Frontend/src/app/landingpage/landingpage.component.html new file mode 100644 index 0000000..8a7dfd1 --- /dev/null +++ b/Frontend/src/app/landingpage/landingpage.component.html @@ -0,0 +1 @@ +{{product.name}}
+