Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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()
constructor() {
this.editorOptions = new JsonEditorOptions();
}