diff --git a/client/src/app/core/section-header/section-header.component.html b/client/src/app/core/section-header/section-header.component.html index 18e9c1f..e1ca757 100644 --- a/client/src/app/core/section-header/section-header.component.html +++ b/client/src/app/core/section-header/section-header.component.html @@ -1,12 +1,14 @@ -
-
-
-
-

Title Goes Here

-
-
- + +
+
+
+
+

{{breadcrumbs.length > 0 && breadcrumbs[breadcrumbs.length-1].label | titlecase}}

+
+
+ +
-
-
+ + diff --git a/client/src/app/core/section-header/section-header.component.ts b/client/src/app/core/section-header/section-header.component.ts index 738118a..7c769d0 100644 --- a/client/src/app/core/section-header/section-header.component.ts +++ b/client/src/app/core/section-header/section-header.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { Observable } from 'rxjs'; import { BreadcrumbService } from 'xng-breadcrumb'; @Component({ @@ -7,11 +8,12 @@ import { BreadcrumbService } from 'xng-breadcrumb'; styleUrls: ['./section-header.component.scss'] }) export class SectionHeaderComponent implements OnInit { + breadcrumb$: Observable; constructor(private bcService: BreadcrumbService) { } ngOnInit(): void { - //this.bcService.breadcrumbs$. + this.breadcrumb$ = this.bcService.breadcrumbs$; } } diff --git a/client/src/app/shop/product-item/product-item.component.html b/client/src/app/shop/product-item/product-item.component.html index b1391b3..bf05c27 100644 --- a/client/src/app/shop/product-item/product-item.component.html +++ b/client/src/app/shop/product-item/product-item.component.html @@ -1,13 +1,13 @@
{{product.name}} +
+ + +
{{product.name}}
{{product.price | currency}} -
- - -
diff --git a/client/src/app/shop/product-item/product-item.component.scss b/client/src/app/shop/product-item/product-item.component.scss index e69de29..6839850 100644 --- a/client/src/app/shop/product-item/product-item.component.scss +++ b/client/src/app/shop/product-item/product-item.component.scss @@ -0,0 +1,4 @@ +.btn { + width: 30%; + height: 40px; +}