Pipes
Import |
Source |
Docs |
NG-ZORRO experiments are features that are released but not yet considered stable or production ready
Developers and users can opt in into these features before they are fully released. But breaking changes may occur with any release.
When To Use#
After importing Pipe, use it like Angular's built-in Pipe
Examples
- 200 B
- 1 kB
- 1 MB
- 1 MB
- 1 GB
- 1 TB
- 1024 MB
Loading...
Default
%
rem
Loading...
Ant Design, a design language for ba...
Loading...
Max [7, 8, 2, 3]
Min [7, 8, 2, 3]
Sum [7, 8, 2, 3]
Avg [7, 8, 2, 3]
Loading...
I am
innerHTML
Loading...
Ant Design
Ant Design
Loading...
API#
nzBytes#
Property | Description | Type | Default |
---|---|---|---|
decimal | Decimal | number | '0' |
from | Unit of current value | string | 'B' |
to | Units converted to target value | string | '' |
nzToCssUnit#
Property | Description | Type | Default |
---|---|---|---|
defaultUnit | Default Unit | string | 'px' |
nzEllipsis#
Property | Description | Type | Default |
---|---|---|---|
length | Truncate length | number | '' |
suffix | Replace character | string | '' |
nzAggregate#
Property | Description | Type | Default |
---|---|---|---|
method | Aggregation | 'sum' | 'max' | 'min' | 'avg' | '' |
nzSanitizer#
Property | Description | Type | Default |
---|---|---|---|
type | sanitizer type | string | 'html' |