Closed zaikin-andrew closed 8 years ago
In angular2 you can access all public function on a component either by
<masonry #myMasonry>
<masonry-brick (click)="myMasonry.layout()"></masonry-brick>
</masonry>
@ViewChild(AngularMasonry) private masonry: AngularMasonry;
myClickHandler(){
this.masonry.layout();
}
Thank you! :)
Hi jelgblad,
Thanks a lot, Please close this issue.
Hi. Could you add ability to use public method after external actions? Like here
We use $grid.masonry(); for adapting grid to current state.