Skip to content

Commit 7d79968

Browse files
committed
fixed bugs
1 parent c74e7b2 commit 7d79968

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

src/app/pages/ecommerce/product-detail/components/description/description.template.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,6 @@ <h5 class="description-title">RATING & REVIEWS</h5>
4747
</div>
4848
</div>
4949
<div class="product-description product-description-mobile">
50-
<div *ngFor="let element of description, let i = index" class="card panel">
51-
<div class="card-header panel-header" role="button" (click)="toggleAccordion(i)">
52-
<div class="mb-0">
53-
<a class="accordion-toggle" role="button">
54-
{{element.title}}
55-
<i class="fa fa-angle-down fa-2x" [ngClass]="{'expanded': accordion[i]}"></i>
56-
</a>
57-
</div>
58-
</div>
59-
<div [collapse]="!accordion[i]" class="panel-body card-body {{element.extraClass}}" [innerHtml]="element.body">
60-
</div>
61-
</div>
6250
<div class="card panel">
6351
<div class="card-header panel-header" role="button" (click)="toggleAccordion(0)">
6452
<div class="mb-0">

src/app/pages/ecommerce/product-detail/product-detail.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
2-
import {ProductsService} from '../products.service';
2+
import {Product, ProductsService} from '../products.service';
33
import {ActivatedRoute} from '@angular/router';
44

55
@Component({
@@ -14,7 +14,7 @@ export class ProductDetailComponent implements OnInit {
1414
public route: ActivatedRoute
1515
) {}
1616

17-
get product() {
17+
get product(): Product {
1818
return this.findProduct(this.getId()) || {
1919
title: 'trainers',
2020
subtitle: 'Trainers In White',
@@ -28,8 +28,7 @@ export class ProductDetailComponent implements OnInit {
2828
'Ollie patch',
2929
'Cup soles',
3030
'Vulcanized rubber soles'
31-
],
32-
reviews: 32
31+
]
3332
};
3433
}
3534

0 commit comments

Comments
 (0)