I just want to create masonry vertical layout with two divider .card-lef`` and.card-right`. Anyone have an idea to place #cardTemplate in left or right based on data Odd/Even? Or maybe in my .ts separate odd/even array?


<ng-template let-data="data" #cardTemplate>
    <div class="card">
  • \$\begingroup\$ It's likely that the even-odd distinction should be made entirely in CSS, not in Angular. \$\endgroup\$ – 200_success Oct 24 '19 at 1:52
  • \$\begingroup\$ @200_success yeah it should on css part, but how to get it when we need vertical masonry layout. \$\endgroup\$ – mersaCS Oct 24 '19 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.