got an array with many projects and i want to display the last 3 projects.
got in my html
Gunter's answer above didn't work in my case. I was able to accomplish the same thing but slightly different:
- projects.length - 4">
{{ project.name }}
{{ project.meta_desciption }}
If the index of the loop is greater then the length of the array minus 4. So if the length is less then 3 it prints all, if it is 3 or greater it just prints the last 3 in whatever order they come in.