ngx-json-viewer-scrolling

JSON formatter / viewer for Angular 2/4/5/6+

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ngx-json-viewer-scrolling
002.3.14 years ago4 years agoMinified + gzip package size for ngx-json-viewer-scrolling in KB

Readme

ngx-json-viewer-scrolling
JSON formatter and viewer for Angular 2/4/5/6+ Live demo: https://stackblitz.com/edit/ngx-json-viewer-scrolling

Install

```bash
For Angular 4/5/6:
npm install ngx-json-viewer-scrolling
For Angular 2:
npm install ngx-json-viewer-scrolling@1 ``` NPM Package: https://www.npmjs.com/package/ngx-json-viewer-scrolling

Usage

In your app.module.ts import NgxJsonViewerModule like ```js import { NgxJsonViewerModule } from 'ngx-json-viewer'; @NgModule({ ..., imports:
...,
NgxJsonViewerModule,
...
, ... }) export class AppModule { } ``` In your component: ```html json="someObject"> ``` To collapse all nodes at first: ```html json="someObject" expanded="false"> ```