angular-masonry
angular-masonry copied to clipboard
Masonry directive as an element doesn't create columns
In the README.md, the masonry
directive is used as an element. It doesn't work properly (creates only a single column) for me when I use it as E
directive like:
<masonry>
...
</masonry>
but it works well when used as A
directive like:
<div masonry>
...
</div>
This also happened to me, using bower install.
I can reproduce this with the demo. The documentation does seem to be at odds. It says:
You have to include the
masonry
attribute on the element holding the bricks.
But then the examples that follow use masonry
as an element.
Seems like a pull request could:
- fix the docs
- change
restrict: AE
torestrict: A
@passy Unless there's a bug disallowing use of masonry
as an element, I could submit some changes.