Skip to content

Instantly share code, notes, and snippets.

thrixton

Block or report user

Report or block thrixton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thrixton
thrixton / key-value.pipe.ts
Created Dec 21, 2017 — forked from bombadillo/key-value.pipe.ts
Angular 2 Key Value Pipe
View key-value.pipe.ts
import { Pipe, PipeTransform } from '@angular/core';
/*
* Enables the key/value pair of an item to be
* visible within an ngFor
* Usage:
* value of iteratable | keyValue
* Example:
* <ul>
* <li *ngFor='key of demo | keyValue'>
You can’t perform that action at this time.