{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10678","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10678/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10678/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10678/events","html_url":"https://github.com/angular/angular/issues/10678","id":170621612,"number":10678,"title":"How to compile directives added on the fly","user":{"login":"dashng","id":13565116,"avatar_url":"https://avatars.githubusercontent.com/u/13565116?v=3","gravatar_id":"","url":"https://api.github.com/users/dashng","html_url":"https://github.com/dashng","followers_url":"https://api.github.com/users/dashng/followers","following_url":"https://api.github.com/users/dashng/following{/other_user}","gists_url":"https://api.github.com/users/dashng/gists{/gist_id}","starred_url":"https://api.github.com/users/dashng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dashng/subscriptions","organizations_url":"https://api.github.com/users/dashng/orgs","repos_url":"https://api.github.com/users/dashng/repos","events_url":"https://api.github.com/users/dashng/events{/privacy}","received_events_url":"https://api.github.com/users/dashng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-11T11:13:22Z","updated_at":"2016-08-11T11:38:16Z","closed_at":"2016-08-11T11:38:16Z","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\n\r\nI have a directive.\r\n\r\n```\r\n@Component({\r\n  selector: 'interfaces',\r\n  template: '<p>child</p>'\r\n})\r\nclass InterfaceList {\r\n  doSomething() {\r\n      alert('=========');\r\n  }\r\n}\r\n\r\n```\r\n\r\n> add drective interfaces on the fly\r\n\r\n```\r\npublic showInterfaces(event, device){\r\n        var $tr = $(event.target).closest('tr');\r\n        var $td = $(`\r\n                <tr> \r\n                    <td colspan='4'>sfdsdfsdf</td>\r\n                </tr>\r\n        `);\r\n        $td.insertAfter($tr);\r\n        $td.find('td').html(function(){\r\n            return '<interfaces></interfaces>';\r\n        });\r\n    }\r\n```\r\n\r\n* questions:\r\n\r\n> how should i compile it.\r\n\r\n\r\n* **Angular version:** 2.0.0-rc.4\r\n \r\n* **Browser:** [all ] \r\n \r\n* **Language:** [all | TypeScript | ES6] \r\n"}}
{"actor":{"display_login":"pkozlowski-opensource"}}