如何访问角砌体中砌体对象的事件

How to access events of the Masonry object in angular-masonry

本文关键字:事件 对象 何访问 访问      更新时间:2023-09-26

我在一个项目中成功地使用了Passy的角砌石。

https://github.com/passy/angular-masonry

访问Masonry对象的事件功能的最佳方式是什么?

感谢

找到解决方案>

    $scope.$on('masonry.created', function (scope, element, attrs) {
    $log.debug('Masonry created');
    var masonObj = element;
    $log.debug('This is masonry', masonObj);

});