{"action":"created","issue":{"url":"https://api.github.com/repos/mariohmol/ang-jsoneditor/issues/9","repository_url":"https://api.github.com/repos/mariohmol/ang-jsoneditor","labels_url":"https://api.github.com/repos/mariohmol/ang-jsoneditor/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mariohmol/ang-jsoneditor/issues/9/comments","events_url":"https://api.github.com/repos/mariohmol/ang-jsoneditor/issues/9/events","html_url":"https://github.com/mariohmol/ang-jsoneditor/issues/9","id":332349700,"node_id":"MDU6SXNzdWUzMzIzNDk3MDA=","number":9,"title":"ViewChild(JsonEditorComponent) editor: JsonEditorComponent returns undefined","user":{"login":"neil-coutinho","id":33371261,"node_id":"MDQ6VXNlcjMzMzcxMjYx","avatar_url":"https://avatars1.githubusercontent.com/u/33371261?v=4","gravatar_id":"","url":"https://api.github.com/users/neil-coutinho","html_url":"https://github.com/neil-coutinho","followers_url":"https://api.github.com/users/neil-coutinho/followers","following_url":"https://api.github.com/users/neil-coutinho/following{/other_user}","gists_url":"https://api.github.com/users/neil-coutinho/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-coutinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-coutinho/subscriptions","organizations_url":"https://api.github.com/users/neil-coutinho/orgs","repos_url":"https://api.github.com/users/neil-coutinho/repos","events_url":"https://api.github.com/users/neil-coutinho/events{/privacy}","received_events_url":"https://api.github.com/users/neil-coutinho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-14T10:49:04Z","updated_at":"2018-06-14T11:35:37Z","closed_at":null,"author_association":"NONE","body":"`import { Component, OnInit, Input, ViewChild } from '@angular/core';\r\nimport { JsonEditorComponent, JsonEditorOptions } from 'ang-jsoneditor';\r\n\r\n@Component({\r\n  selector: 'app-code-view',\r\n  templateUrl: './code-view.component.html',\r\n  styleUrls: ['./code-view.component.scss']\r\n})\r\nexport class CodeViewComponent implements OnInit {\r\n public editorOptions: JsonEditorOptions;\r\n @ViewChild(JsonEditorComponent) editor: JsonEditorComponent;\r\n\r\n  constructor() {\r\n\r\n    this.editorOptions = new JsonEditorOptions();\r\n    console.log('editorOptions', this.editorOptions);\r\n    console.log('editor', this.editor); => UNDEFINED?\r\n    this.editor.setOptions(this.editorOptions);\r\n   }\r\n\r\n  ngOnInit() {\r\n\r\n  }\r\n\r\n\r\n}\r\n`\r\n\r\n@mariohmol any idea why this.editor logs as undefined? Also this this.editorOptions.ace deprecated?"},"comment":{"url":"https://api.github.com/repos/mariohmol/ang-jsoneditor/issues/comments/397263748","html_url":"https://github.com/mariohmol/ang-jsoneditor/issues/9#issuecomment-397263748","issue_url":"https://api.github.com/repos/mariohmol/ang-jsoneditor/issues/9","id":397263748,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzI2Mzc0OA==","user":{"login":"neil-coutinho","id":33371261,"node_id":"MDQ6VXNlcjMzMzcxMjYx","avatar_url":"https://avatars1.githubusercontent.com/u/33371261?v=4","gravatar_id":"","url":"https://api.github.com/users/neil-coutinho","html_url":"https://github.com/neil-coutinho","followers_url":"https://api.github.com/users/neil-coutinho/followers","following_url":"https://api.github.com/users/neil-coutinho/following{/other_user}","gists_url":"https://api.github.com/users/neil-coutinho/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-coutinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-coutinho/subscriptions","organizations_url":"https://api.github.com/users/neil-coutinho/orgs","repos_url":"https://api.github.com/users/neil-coutinho/repos","events_url":"https://api.github.com/users/neil-coutinho/events{/privacy}","received_events_url":"https://api.github.com/users/neil-coutinho/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T11:35:37Z","updated_at":"2018-06-14T11:35:37Z","author_association":"NONE","body":"Yes I do. In my component html file code-view.component.html \r\n\r\n`<div class=\"jsoneditor-wrapper\"><json-editor\r\n    [options]=\"editorOptions\"\r\n    [data]=\"code\">\r\n</json-editor>\r\n</div>`"}}
{"actor":{"display_login":"neil-coutinho"}}