{"action":"opened","issue":{"url":"https://api.github.com/repos/quantumui/quantumui/issues/61","labels_url":"https://api.github.com/repos/quantumui/quantumui/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/quantumui/quantumui/issues/61/comments","events_url":"https://api.github.com/repos/quantumui/quantumui/issues/61/events","html_url":"https://github.com/quantumui/quantumui/issues/61","id":104789348,"number":61,"title":"nqCollapse in directive link function","user":{"login":"rombik76","id":14116758,"avatar_url":"https://avatars.githubusercontent.com/u/14116758?v=3","gravatar_id":"","url":"https://api.github.com/users/rombik76","html_url":"https://github.com/rombik76","followers_url":"https://api.github.com/users/rombik76/followers","following_url":"https://api.github.com/users/rombik76/following{/other_user}","gists_url":"https://api.github.com/users/rombik76/gists{/gist_id}","starred_url":"https://api.github.com/users/rombik76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rombik76/subscriptions","organizations_url":"https://api.github.com/users/rombik76/orgs","repos_url":"https://api.github.com/users/rombik76/repos","events_url":"https://api.github.com/users/rombik76/events{/privacy}","received_events_url":"https://api.github.com/users/rombik76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-03T21:55:03Z","updated_at":"2015-09-03T21:55:03Z","closed_at":null,"body":"Hello, could you please check if it is my fault or a bug. I am trying to create a dynamic collapsable list in a directive link function, but nq-collapse does not work:\r\n\r\nlink: function (scope, element, attrs) {\r\n...\r\nangular.element(\"&lt;a&gt;\").attr(\"nq-collapse\", \"\").attr(\"target-id\", \"#someId\");\r\nangular.element(\"&lt;ul&gt;\").attr(\"id\", \"someId\");\r\n...\r\n}\r\n\r\n It works ok only when providing static html to templateUrl."}}