angularjsuser-interfacemasonryangular-masonry

Angular Masonry options not working


I'm unable to set options for ng-Masonry: https://www.npmjs.com/package/ng-masonry

<div class="masonry" data-masonry data-masonry-options='{ "columnWidth": 1000, "gutter": 10 }'>

None of the options I set appear in the UI. Any way around this?


Solution

  • I found the answer: I was using an old version of ngMasonry, which had a typo: https://www.npmjs.com/package/ng-masonry. By linking to the latest version it worked.