javascripthtmlangulartypescriptangular17

New @for loop in angular 17


I want to display items of an array of strings from index 1.

arr = [ "str1", "str2", "str3", "str4", "str5" ]

Output should be:

str2
str3
str4
str5

Print all except first one, using new @for loop in angular.


Solution

  • Another:

    @for(a of arr;let first=$first;track $index) {
         @if(!first)
         {
           {{a}}
         }
    }