Angular 2 component for objects debug (Collapsible JSON in HTML like in Chrome DevTools)
npm install vri-advanced#
t-json-viewer v1.0.0Angular 2 component for objects debug (Collapsible JSON in HTML like in Chrome DevTools)
```
npm install t-json-viewer --save
Import TJsonViewerModule to have access to following component
`js
import {TJsonViewerModule} from 't-json-viewer';
@NgModule({
...,
imports: [
...,
TJsonViewerModule,
...
],
...
})
export class AppModule { }
`
Takes an input [json] that can be data bound to any object.
`js
import {PrettyJsonComponent} from 'angular2-prettyjson';
@Component({
...,
template:
`
})
export class MyComponent {
...
ngOnInit() {
this.asset = {};
...
}
...
}
outputs
`TODO``