Socket
Book a DemoInstallSign in
Socket

sx-json-viewer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sx-json-viewer

An angular Component to display JSON data

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
1.2K
-0.08%
Maintainers
1
Weekly downloads
 
Created
Source

SxJsonViewer

An angular Component to display JSON data

use:

npm i sx-json-viewer --save

in app.module.ts

import { SxJsonViewerModule } from 'sx-json-viewer';
...

@NgModule({
 ...
 imports: [
    ...
    SxJsonViewerModule // <- import the module
  ],
 ...

in target html:

<sx-json-viewer [title]="'My JSON Config'" [jsonStr]="jsonStr"></sx-json-viewer>

Note: jsonStr is a string. So convert an Object using JSON.stringify and pass on to jsonStr

=================================================================

This library was generated with Angular CLI version 11.2.11. It uses Ivy. A new webcomponent version to be released soon

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts