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

Description

exported from @angular/common/index defined in @angular/common/src/pipes/slice_pipe.ts