← Form Builder and Drag Drop API

Component · v2.7.1

NgbJsonPreviewComponent

NgbJsonPreviewComponent component exported by the ngbootstrap package API.

Import

import { NgbJsonPreviewComponent } from '@angular-bootstrap/ngbootstrap';

Selector:ngb-json-preview

Declaration

Inputs

value

value: unknown

Default:null

indent

indent: number

Default:2

fallback

fallback: string

Default:'null'

maxHeight

maxHeight: number

Default:320

Properties

formattedJson

get formattedJson(): string
Source: src/drag-drop/src/json-preview/json-preview.component.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.