【问题标题】:How to access events of the Masonry object in angular-masonry如何在 angular-masonry 中访问 Masonry 对象的事件
【发布时间】:2014-04-11 12:23:26
【问题描述】:

我在一个项目中成功使用了 Passy 的 angular-masonry。

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

哪个是访问 Masonry 对象的事件函数的最佳方法?

谢谢

【问题讨论】:

    标签: javascript angularjs masonry


    【解决方案1】:

    找到解决方案>

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

    【讨论】:

      猜你喜欢
      • 2023-04-05
      • 2014-03-13
      • 2021-03-26
      • 1970-01-01
      • 1970-01-01
      • 2019-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多