UNPKG

angular2-prettyjson

Version:

Angular2 json utils. Includes a pipe to replace Angular's built in json pipe which implements spacing, avoids circular references. Also includes a component that will pretty print json with syntax highlight

5 lines (4 loc) 160 B
import { PipeTransform } from "@angular/core"; export declare class SafeJsonPipe implements PipeTransform { transform(obj: any, spaces?: number): string; }