{{ prod.name }}
+This is a Mobile phone with all the advance features and at best price.
+{{ prod.unitPrice | currency:'USD' }}
+ + +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' }}
+ + +