Open dbartumeu opened 7 years ago
I have the same problematic ? Do you get a way to do it ?
any update on this?
Does this help?
In your component get a reference to the component:
@ViewChild(AngularMasonry) private masonry: AngularMasonry;
Then trigger the layout update like this:
setTimeout( () => {
if (this.masonry){
this.masonry._msnry.reloadItems();
this.masonry.layout();
}
});
I want to trigger layout method every time that I add some content to the masonry-brick element, there is a way to get the _msnry Objet once layoutComplete is triggered?