I'm trying to build a Card layout with angular material that will allow cards to have a variable height and be able change the number of displayed columns based on window width.
It was pretty straight forward to get almost what I'm looking for which is what is shown here in this question but the example linked in the answer here does not allow for cards to have a dynamic height.
I've tried angular-masonry a few weeks ago but would not get it to work, I may try again with angular masonry but ideally would like to achieve it without using extra javascript libraries.
Currently I am achieving what I want by ng-repeating over multiple columns then selectively adding my cards to each column for example if I have two columns add odd cards to column 1 and even cards to column 2, but that causes new elements to be rendered and added to DOM whenever columns resize. I want to be able to use the same elements and achieve the desired behaviour through css.