File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
src/app/pages/ecommerce/product-detail Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -47,18 +47,6 @@ <h5 class="description-title">RATING & REVIEWS</h5>
47
47
</ div >
48
48
</ div >
49
49
< 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 >
62
50
< div class ="card panel ">
63
51
< div class ="card-header panel-header " role ="button " (click) ="toggleAccordion(0) ">
64
52
< div class ="mb-0 ">
Original file line number Diff line number Diff line change 1
1
import { Component , OnInit , ViewEncapsulation } from '@angular/core' ;
2
- import { ProductsService } from '../products.service' ;
2
+ import { Product , ProductsService } from '../products.service' ;
3
3
import { ActivatedRoute } from '@angular/router' ;
4
4
5
5
@Component ( {
@@ -14,7 +14,7 @@ export class ProductDetailComponent implements OnInit {
14
14
public route : ActivatedRoute
15
15
) { }
16
16
17
- get product ( ) {
17
+ get product ( ) : Product {
18
18
return this . findProduct ( this . getId ( ) ) || {
19
19
title : 'trainers' ,
20
20
subtitle : 'Trainers In White' ,
@@ -28,8 +28,7 @@ export class ProductDetailComponent implements OnInit {
28
28
'Ollie patch' ,
29
29
'Cup soles' ,
30
30
'Vulcanized rubber soles'
31
- ] ,
32
- reviews : 32
31
+ ]
33
32
} ;
34
33
}
35
34
You can’t perform that action at this time.
0 commit comments