You can check the module import here
.
Returns the groupped data of the given array.
import { NgGroupByPipeModule } from 'angular-pipes';
const values = [
{ name: 'a', prop: 'foo' },
{ name: 'b', prop: 'bar' },
{ name: 'c', prop: 'bar' },
{ name: 'd', prop: 'foo' },
];
{{ values | groupBy: 'prop' }}
<!--
[
{key: foo, value: Array[2]},
{key: bar, value: Array[2]}
]
-->
Returns the minimum of the given array.
import { NgMinPipeModule } from 'angular-pipes';
{{ [5, 4, 1, 9] | min }}
<!-- 1 -->
Returns the maximum of the given array.
import { NgMaxPipeModule } from 'angular-pipes';
{{ [5, 4, 1, 9] | max }}
<!-- 9 -->
Returns the mean of the given array.
import { NgMeanPipeModule } from 'angular-pipes';
{{ [5, 5, 1, 9] | mean }}
<!-- 5 -->
Returns the sum of the given array.
import { NgSumPipeModule } from 'angular-pipes';
{{ [5, 5, 1, 9] | sum }}
<!-- 20 -->