1.0.2 • Published 2 years ago

json-visual-pipe v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

JSON Visual Pipe

This Angular Pipe dumps an object, array or even Observables into a visual representation of the data thats interactive, allowing you to collapse or exapnd objects. Must have for any developer!

Installation

npm install json-visual-pipe

Scaffolding

Import the module into your project under imports

imports: [
    BrowserModule,
    AppRoutingModule,
    JsonvModule,
  ],

Use

In the following example, the jsonv pipe may be used with objects and arrays

<div [innerHTML]="dataObject | jsonv"></div>

also use jsonv pipe to dump Observables

<div [innerHTML]="(dataObject$ | async) | jsonv"></div>