Why ng-content selector is not working inside *ngFor

前端 未结 6 1093
梦如初夏
梦如初夏 2020-12-21 18:06

Here is the stackblitz code.

As you can see

6条回答
  •  天涯浪人
    2020-12-21 18:47

    You can do it this way with two loops:

    Odd Numbers

    {{(number%2>0? number : '')}}

    Even

    {{(number%2==0? number : '')}}

提交回复
热议问题