From 9d1507846b9625bcca050b0c71cad78c0454f4ff Mon Sep 17 00:00:00 2001 From: Julian30520 Date: Tue, 11 Jan 2022 10:40:48 +0100 Subject: [PATCH] =?UTF-8?q?Affichage=20des=20donn=C3=A9es=20selon=20les=20?= =?UTF-8?q?avis=20sur=20la=20page=20d'accueil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/page-accueil/page-accueil.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }