{"action":"opened","issue":{"url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/4623","repository_url":"https://api.github.com/repos/valor-software/ngx-bootstrap","labels_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/4623/labels{/name}","comments_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/4623/comments","events_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/4623/events","html_url":"https://github.com/valor-software/ngx-bootstrap/issues/4623","id":361498473,"node_id":"MDU6SXNzdWUzNjE0OTg0NzM=","number":4623,"title":"Open modal from component WITHOUT having to create a component class","user":{"login":"heitorb","id":6243583,"node_id":"MDQ6VXNlcjYyNDM1ODM=","avatar_url":"https://avatars0.githubusercontent.com/u/6243583?v=4","gravatar_id":"","url":"https://api.github.com/users/heitorb","html_url":"https://github.com/heitorb","followers_url":"https://api.github.com/users/heitorb/followers","following_url":"https://api.github.com/users/heitorb/following{/other_user}","gists_url":"https://api.github.com/users/heitorb/gists{/gist_id}","starred_url":"https://api.github.com/users/heitorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heitorb/subscriptions","organizations_url":"https://api.github.com/users/heitorb/orgs","repos_url":"https://api.github.com/users/heitorb/repos","events_url":"https://api.github.com/users/heitorb/events{/privacy}","received_events_url":"https://api.github.com/users/heitorb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-18T21:52:46Z","updated_at":"2018-09-18T21:52:46Z","closed_at":null,"author_association":"NONE","body":"I have a modal created in the HTML and I want to trigger that modal to be opened from the component, not by clicking anything on the page.\r\n\r\nIn the docs, you only mention one way of doing this, which is by creating a new class inside the component class.\r\n\r\nHow can I, inside the ts file, get a reference from a template in the HTML and pass that to the \"show\" method?\r\n\r\nAgain, this modal is supposed to open without the user doing anything. It is a session timeout warning modal, that comes when there is 60 seconds left in the session. So when it is time to open, I need to get a reference to the ng-template in the HTML."}}
{"actor":{"display_login":"heitorb"}}