I'm using an angular2-masonry plugin for an angular project, where I need to display the media without changing its order. There is no option available for the angular2-masonry plugin. So is there any way to make it happen?
Thanks.
I'm using an angular2-masonry plugin for an angular project, where I need to display the media without changing its order. There is no option available for the angular2-masonry plugin. So is there any way to make it happen?
Thanks.
Copyright © 2021 Jogjafile Inc.
It is possible to wait for all the images to be loaded before the brick are added using
useImagesLoaded, without the dimensions masonry is unable to maintain the desired arrangement.To add
useImagesLoaded:Include this in your .angular-cli.json import src or in the index.html
Had the use Image attribute set to true:
Another option would be to use
setTimeoutto callreloadItemsandlayout:One way to do this would be to first reference the component:
Then handle the event:
You can also listen for these events:
Hope that helps