在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hivivo/ngx-json-viewer开源软件地址:https://github.com/hivivo/ngx-json-viewer开源编程语言:TypeScript 70.3%开源软件介绍:ngx-json-viewerJSON formatter and viewer for Angular Live demo: https://stackblitz.com/edit/ngx-json-viewer Installnpm install ngx-json-viewer or yarn add ngx-json-viewer For older Angular: # For Angular 4/5/6/7+:
npm install ngx-json-viewer@2
# For Angular 2:
npm install ngx-json-viewer@1 NPM Package: https://www.npmjs.com/package/ngx-json-viewer UsageIn your 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> To only expand 3 levels: <ngx-json-viewer [json]="someObject" [depth]="3"></ngx-json-viewer> |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论