Angular 2 component for objects debug (Collapsible JSON in HTML like in Chrome DevTools)
npm install @reginbald/t-json-viewert-json-viewer v1.2.0
npm install t-json-viewer --save
`
NPM Package: https://www.npmjs.com/package/t-json-viewer
Usage
Import TJsonViewerModule to have access to following component
`js
import {TJsonViewerModule} from 't-json-viewer';
@NgModule({
...,
imports: [
...,
TJsonViewerModule,
...
],
...
})
export class AppModule { }
`
$3
Takes an input [json] that can be data bound to any object.
`js
@Component({
...,
template:
})
export class MyComponent {
...
ngOnInit() {
this.asset = {};
...
}
...
}
``