MapToIterable

MapToIterable is a custom pipe to make a custom object iterable over its keys

Reasoning

According to Miško Hevery (reference):

Maps have no orders in keys and hence they iteration is unpredictable. This was supported in ng1, but we think it was a mistake and will not be supported in NG2

The plan is to have a mapToIterable pipe

*ngFor"#item of map | mapToIterable"

Import


import {{'{'}}FuiMapToIterablePipeModule{{'}'}} from 'fuel-ui'; //module
import {{'{'}}MapToIterablePipe{{'}'}} from 'fuel-ui'; //class

Getting Started

MapToIterable pipe is used to make custom objects that have no orders iterable by their keys

Usage