Two useful Angular 6 pipes

This is a quick post to share with you 2 pipes that could prove useful in your Angular 6 project.


This pipes allows you to use a number as an iterable in a *ngFor to multiply the same code a certain number of times.

See it in action on StackBlitz

Object as iterable

Another pipe for *ngFor, this one allows you to iterate an object’s keys instead of an array.

See it in action on StackBlitz

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.