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.
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.
2
Answers
The slice Pipe is what you are looking for :
Another: