KeyValuePipelink
Transforms Object or Map into an array of key value pairs.
输入值
input | null | {
[key: string]: V;
[key: number]: V;
} | Map |
参数
compareFn | (a: KeyValue | 可选. 默认值是 |
说明
The output array will be ordered by keys. By default the comparator will be by Unicode point value. You can optionally pass a compareFn if your keys are complex types.
Examples
This examples show how an Object or a Map and be iterated by ngFor with the use of this keyvalue pipe.