Masonry Layout broke when i update the item list
Opened this issue · 0 comments
hmanprod commented
Hi
Masonry Layout broke when i update the item list with the method getArticles()
Here below my code
<isotope-grid #isotope [options]="configMasonry">
<isotope-item class="brick" *ngFor="let article of notes; let i = index">
<div class="card">
<single-card
[article]="article"
[currentUser]="currentUser"
[readModal]="readModal"
[signalerModal] = "signalerModal"></single-card>
</div>
</isotope-item>
</isotope-grid>
-------------------------------------------------
configMasonry: IsotopeOptions = {
itemSelector: '.brick'
};
getArticles(){
this.articlesParams = {};
this.articleService.listAll(this.articlesParams , (data)=>{
this.notes = data.docs;
});
}