Skip to content

Instantly share code, notes, and snippets.

@masinamichele
Created April 11, 2018 12:43
Show Gist options
  • Save masinamichele/42e878a65de9799fc75c2716ebfc94b3 to your computer and use it in GitHub Desktop.
Save masinamichele/42e878a65de9799fc75c2716ebfc94b3 to your computer and use it in GitHub Desktop.
<div class="div-1">
<ng-masonry-grid *ngIf="showMasonry" [masonryOptions]="masonryOptions" [useAnimation]="true" [useImagesLoaded]="true" (onNgMasonryInit)="onNgMasonryInit($event)">
<ng-container *ngIf="noteCaricate">
<ng-masonry-grid-item class="brick mat-card" id="{{'masonry-item-'+ (i)}}" *ngFor="let nota of note; let i = index;" (click)="openModificaMemo(i,$event)"
[ngStyle]="{'backgroundColor':nota.colore}">
<span *ngIf="nota.titolo.length > 0" class="span-titolo">{{nota.titolo}}</span>
<span class="span-testo">{{nota.descrizione}}</span>
</ng-masonry-grid-item>
</ng-container>
</ng-masonry-grid>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment