{{ prod.name }}
+This is a Mobile phone with all the advance features and at best price.
+{{ prod.unitPrice | currency:'USD' }}
+ + +From 68bedfed7fcb4777efe98e679dc65689ff89383e Mon Sep 17 00:00:00 2001 From: Himanshu Agraiya <59307@hexaware.com> Date: Mon, 27 Sep 2021 12:15:25 +0530 Subject: [PATCH] first --- src/app/app.module.ts | 4 +- .../product-list/product-list.component.css | 0 .../product-list/product-list.component.html | 60 +++++++++++++ .../product-list.component.spec.ts | 25 ++++++ .../product-list/product-list.component.ts | 87 +++++++++++++++++++ src/app/models/product-category.ts | 4 + src/app/models/product.ts | 12 +++ .../services/product-service.service.spec.ts | 16 ++++ src/app/services/product-service.service.ts | 68 +++++++++++++++ tsconfig.json | 1 + 10 files changed, 276 insertions(+), 1 deletion(-) create mode 100644 src/app/components/product-list/product-list.component.css create mode 100644 src/app/components/product-list/product-list.component.html create mode 100644 src/app/components/product-list/product-list.component.spec.ts create mode 100644 src/app/components/product-list/product-list.component.ts create mode 100644 src/app/models/product-category.ts create mode 100644 src/app/models/product.ts create mode 100644 src/app/services/product-service.service.spec.ts create mode 100644 src/app/services/product-service.service.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b1c6c96..70d0574 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,10 +3,12 @@ import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; +import { ProductListComponent } from './components/product-list/product-list.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + ProductListComponent ], imports: [ BrowserModule, diff --git a/src/app/components/product-list/product-list.component.css b/src/app/components/product-list/product-list.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/product-list/product-list.component.html b/src/app/components/product-list/product-list.component.html new file mode 100644 index 0000000..66d04b6 --- /dev/null +++ b/src/app/components/product-list/product-list.component.html @@ -0,0 +1,60 @@ +
This is a Mobile phone with all the advance features and at best price.
+{{ prod.unitPrice | currency:'USD' }}
+ + +