SlicePipe
SlicePipe
Stable Pipe
What it does
Creates a new List or String containing a subset (slice) of the elements.
How to use
array_or_string_expression | slice:start[:end]
NgModule
CommonModuleDescription
Where the input expression is a List
or String
, and:
-
start
: The starting index of the subset to return.-
a positive integer: return the item at
登录查看完整内容
-
a positive integer: return the item at