How to use ang-jsoneditor - 4 common examples

To help you get started, we’ve selected a few ang-jsoneditor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phucan1108 / letportal / src / web-portal / src / app / modules / portal / modules / builder / components / standard / controls / control-events.dialog.component.ts View on Github external
private cd: ChangeDetectorRef,
        private logger: NGXLogger) {

        this.control = this.data.control
        this.availabelEvents = this.data.availabelEvents
        if(!this.availabelEvents){
            this.availabelEvents = []
        }
        this.availableBoundDatas = this.data.availableBoundDatas
        if(!this.availableBoundDatas){
            this.availableBoundDatas = []
        }

        this.logger.debug('current control', this.control)

        this.editorOptions = new JsonEditorOptions()
        this.editorOptions.mode = 'code'
        this.query = {}

        this.breakpointObserver.observe([Breakpoints.HandsetLandscape, Breakpoints.HandsetPortrait])
            .pipe(
                tap(result => {
                    if (result.matches) {
                        this.isHandset = true
                        this.cd.markForCheck()
                    }
                    else {
                        this.isHandset = false
                        this.cd.markForCheck()
                    }
                })
            ).subscribe()
github mariohmol / ang-jsoneditor / src / app / demo / demo.component.ts View on Github external
constructor() {
    this.editorOptions = new JsonEditorOptions();
  }
github mariohmol / ang-jsoneditor / src / app / app.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        NgJsonEditorModule.forRoot(),
        RouterTestingModule.withRoutes(routes),
        FormsModule,
        ReactiveFormsModule
      ],
      declarations: [
        AppComponent, DemoComponent, ShowComponent
      ]
    }).compileComponents();
  }));
github mariohmol / ang-jsoneditor / src / app / demo / demo.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        NgJsonEditorModule.forRoot(),
        FormsModule,
        ReactiveFormsModule
      ],
      declarations: [ DemoComponent, ShowComponent ]
    })
    .compileComponents();
  }));

ang-jsoneditor

[![Build Status](https://travis-ci.org/mariohmol/ang-jsoneditor.svg?branch=master)](https://travis-ci.org/mariohmol/ang-jsoneditor)

MIT
Latest version published 2 months ago

Package Health Score

80 / 100
Full package analysis