ngx-json-viewer-scrolling
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

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

# 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

import { NgxJsonViewerModule } from 'ngx-json-viewer';
 
@NgModule({
  ...,
  imports: [
    ...,
    NgxJsonViewerModule,
    ...
  ],
  ...
})
export class AppModule { }

In your component:

<ngx-json-viewer [json]="someObject"></ngx-json-viewer>

To collapse all nodes at first:

<ngx-json-viewer [json]="someObject" [expanded]="false"></ngx-json-viewer>

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i ngx-json-viewer-scrolling

    Weekly Downloads

    184

    Version

    2.3.1

    License

    MIT

    Unpacked Size

    88.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • john.lewczyk