{"action":"opened","issue":{"url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/503","repository_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge","labels_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/503/comments","events_url":"https://api.github.com/repos/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/503/events","html_url":"https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/503","id":157024601,"number":503,"title":"Prevent aurelia from processing `<ak-template>`","user":{"login":"JeroenVinke","id":2189477,"avatar_url":"https://avatars.githubusercontent.com/u/2189477?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenVinke","html_url":"https://github.com/JeroenVinke","followers_url":"https://api.github.com/users/JeroenVinke/followers","following_url":"https://api.github.com/users/JeroenVinke/following{/other_user}","gists_url":"https://api.github.com/users/JeroenVinke/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenVinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenVinke/subscriptions","organizations_url":"https://api.github.com/users/JeroenVinke/orgs","repos_url":"https://api.github.com/users/JeroenVinke/repos","events_url":"https://api.github.com/users/JeroenVinke/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenVinke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-26T16:26:41Z","updated_at":"2016-05-26T16:26:41Z","closed_at":null,"body":"Stop Aurelia from processing the content of `<ak-template>`, fixes https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/issues/480#issuecomment-221918586\r\n\r\nThe task of <ak-template> is to retrieve the innerHTML as a string, so it can be passed to Kendo controls. The aurelia template inside `<ak-template>` doesn't have to be compiled by aurelia, so it can be cleared.\r\n\r\nWe can change [this](https://github.com/aurelia-ui-toolkits/aurelia-kendoui-bridge/blob/master/src/common/template.js#L7-L13):\r\n\r\n```js\r\n@processContent((compiler, resources, element, instruction) => {\r\n  let html = element.innerHTML;\r\n  if (html !== '') {\r\n    instruction.template = html;\r\n  }\r\n  return true; // tells aurelia to process the content of <ak-template>\r\n})\r\n```\r\n\r\nto:\r\n\r\n```js\r\n@processContent((compiler, resources, element, instruction) => {\r\n  let html = element.innerHTML;\r\n  if (html !== '') {\r\n    instruction.template = html;\r\n  }\r\n  element.innerHTML = ''; // remove any HTML from `<ak-template>` because it has already been retrieved above\r\n\r\n  // don't return true, so aurelia does not process the content of <ak-template>\r\n})\r\n```\r\n\r\n"}}
{"actor":{"display_login":"JeroenVinke"}}