title: ngx-masonry not working properly in Angular. Getting images clustered and overlapping
body: <p>I have to create this particular layout in Angular 9.
  <a href="https://i.stack.imgur.com/2fugX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2fugX.jpg" alt="enter image description here" /></a></p>
  <p>I am using the ngx-masonry package. (<a href="https://www.npmjs.com/package/ngx-masonry" rel="nofollow noreferrer">https://www.npmjs.com/package/ngx-masonry</a>) to create this particular grid.</p>
  <p>My code is as follows :
  For html component</p>
  <pre><code>&lt;div class=&quot;container pt-5&quot;&gt;
      &lt;ngx-masonry&gt;
          &lt;div ngxMasonryItem class=&quot;masonry-item&quot; *ngFor=&quot;let item of masonryItems&quot;&gt;
              &lt;img src=&quot;{{ item.src }}&quot;&gt;
         &lt;/div&gt;
      &lt;/ngx-masonry&gt;
  &lt;/div&gt;
  
  </code></pre>
  <p>For ts component</p>
  <pre><code>import { Component, OnInit } from '@angular/core';
  
  @Component({
    selector: 'app-inspirations',
    templateUrl: './inspirations.component.html',
    styleUrls: ['./inspirations.component.css']
  })
  export class InspirationsComponent implements OnInit {
    masonryItems = [
      {src: &quot;../../assets/component_7_images/image1.png&quot;},
      {src: &quot;../../assets/component_7_images/image2.png&quot;},
      {src: &quot;../../assets/component_7_images/image3.png&quot;},
      {src: &quot;../../assets/component_7_images/image4.png&quot;},
      {src: &quot;../../assets/component_7_images/image5.png&quot;},
      {src: &quot;../../assets/component_7_images/image6.png&quot;},
      {src: &quot;../../assets/component_7_images/image7.png&quot;}
    ];
  
    constructor() { }
  
    ngOnInit(): void {
    }
  
  }
  </code></pre>
  <p>The result I am getting is :</p>
  <p><a href="https://i.stack.imgur.com/xo1YD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xo1YD.jpg" alt="enter image description here" /></a></p>
  <p>I need the pictures in a proper masonry format. Can someone guide ?</p>