Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1002 Bytes

multi-value.pipe.md

File metadata and controls

45 lines (29 loc) · 1002 Bytes
Title Added Status
Multi Value Pipe
v3.2.0
Active

Takes an array of strings and turns it into one string where items are separated by a separator. The default separator applied to the list is the comma , however, you can set your own separator in the params of the pipe.

Basic Usage

Default separator

<div>
    List {{ values | multiValue }}
</div>

Result

multi-value-pipe

Custom separator

<div>
    List {{ values | multiValue: ' :) ' }}
</div>

Result

multi-value-pipe

Details

The pipe gets every one of the items passed to the pipe and stringifies it adding the separator set in the configuration.

You will need to specify the separator you want to use for it to work.