diff --git a/src/app/pages/page-accueil/page-accueil.component.ts b/src/app/pages/page-accueil/page-accueil.component.ts index a15c496..fc1bc77 100644 --- a/src/app/pages/page-accueil/page-accueil.component.ts +++ b/src/app/pages/page-accueil/page-accueil.component.ts @@ -77,8 +77,9 @@ export class PageAccueilComponent implements OnInit { this.listRate.push(product); } }); - //this.listData = this.listRate; console.log(this.listRate); + this.listData = [...this.listRate]; + if(this.listData.length >= 9) this.listData.length = 9; } }