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

CommonModule

Description

Where the input expression is a List or String, and: