When prepending (unshift) an element to the ngFor array the method _msnry.appended is called (instead of prepended) resulting in the item being at the bottom.
Maybe in AngularMasonryBrick component on ngAfterViewInit there could be a check to see if this._element is this._parent._msnry.items[0] and this._parent._msnry.items.length > 1 then it would be prepended
When prepending (
unshift
) an element to the ngFor array the method_msnry.appended
is called (instead ofprepended
) resulting in the item being at the bottom.Maybe in
AngularMasonryBrick
component onngAfterViewInit
there could be a check to see ifthis._element
isthis._parent._msnry.items[0]
andthis._parent._msnry.items.length > 1
then it would be prepended