Angular 2 - ngFor display last 3 items in array

前端 未结 4 629
情书的邮戳
情书的邮戳 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:42

    • You might need some additional null check for projects or ensure that it is always an array.

    提交回复
    热议问题