useExisting: forwardRef()

in src/app/code/code.component.ts [23:45]


      useExisting: forwardRef(() => CodeComponent),
      multi: true
    }
  ],
  template: `<textarea #host></textarea>`,
  styleUrls: ['./code.component.css']
})
export class CodeComponent {
  @Input()
  mode: CodeEditorMode = 'sql';

  @Output() change = new EventEmitter();
  @Output() query = new EventEmitter();
  editor;
  @ViewChild('host', {static: true}) host: any;

  _value = '';
  @Output() instance = null;

  /**
   * Constructor
   */
  constructor() {