Angular 2 - ngFor display last 3 items in array

前端 未结 4 689
情书的邮戳
情书的邮戳 2021-02-06 15:44

got an array with many projects and i want to display the last 3 projects.

got in my html

          
  • 4条回答
    •  感动是毒
      2021-02-06 16:23

      In my case for getting last three project below code work perfect no need to check projects length it work for any length of array.


    提交回复
    热议问题