{"action":"created","issue":{"url":"https://api.github.com/repos/winjs/angular-winjs/issues/9","labels_url":"https://api.github.com/repos/winjs/angular-winjs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/winjs/angular-winjs/issues/9/comments","events_url":"https://api.github.com/repos/winjs/angular-winjs/issues/9/events","html_url":"https://github.com/winjs/angular-winjs/issues/9","id":60666635,"number":9,"title":"winAppBarCommand doesn't have support for type='content'","user":{"login":"mtycholaz","id":3585379,"avatar_url":"https://avatars.githubusercontent.com/u/3585379?v=3","gravatar_id":"","url":"https://api.github.com/users/mtycholaz","html_url":"https://github.com/mtycholaz","followers_url":"https://api.github.com/users/mtycholaz/followers","following_url":"https://api.github.com/users/mtycholaz/following{/other_user}","gists_url":"https://api.github.com/users/mtycholaz/gists{/gist_id}","starred_url":"https://api.github.com/users/mtycholaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtycholaz/subscriptions","organizations_url":"https://api.github.com/users/mtycholaz/orgs","repos_url":"https://api.github.com/users/mtycholaz/repos","events_url":"https://api.github.com/users/mtycholaz/events{/privacy}","received_events_url":"https://api.github.com/users/mtycholaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winjs/angular-winjs/labels/kind:%20codebug","name":"kind: codebug","color":"207de5"},{"url":"https://api.github.com/repos/winjs/angular-winjs/labels/pri:%201","name":"pri: 1","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"TheWrathOfConst","id":6990048,"avatar_url":"https://avatars.githubusercontent.com/u/6990048?v=3","gravatar_id":"","url":"https://api.github.com/users/TheWrathOfConst","html_url":"https://github.com/TheWrathOfConst","followers_url":"https://api.github.com/users/TheWrathOfConst/followers","following_url":"https://api.github.com/users/TheWrathOfConst/following{/other_user}","gists_url":"https://api.github.com/users/TheWrathOfConst/gists{/gist_id}","starred_url":"https://api.github.com/users/TheWrathOfConst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheWrathOfConst/subscriptions","organizations_url":"https://api.github.com/users/TheWrathOfConst/orgs","repos_url":"https://api.github.com/users/TheWrathOfConst/repos","events_url":"https://api.github.com/users/TheWrathOfConst/events{/privacy}","received_events_url":"https://api.github.com/users/TheWrathOfConst/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/winjs/angular-winjs/milestones/1","html_url":"https://github.com/winjs/angular-winjs/milestones/1504","labels_url":"https://api.github.com/repos/winjs/angular-winjs/milestones/1/labels","id":1062234,"number":1,"title":"1504","description":"","creator":{"login":"TheWrathOfConst","id":6990048,"avatar_url":"https://avatars.githubusercontent.com/u/6990048?v=3","gravatar_id":"","url":"https://api.github.com/users/TheWrathOfConst","html_url":"https://github.com/TheWrathOfConst","followers_url":"https://api.github.com/users/TheWrathOfConst/followers","following_url":"https://api.github.com/users/TheWrathOfConst/following{/other_user}","gists_url":"https://api.github.com/users/TheWrathOfConst/gists{/gist_id}","starred_url":"https://api.github.com/users/TheWrathOfConst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheWrathOfConst/subscriptions","organizations_url":"https://api.github.com/users/TheWrathOfConst/orgs","repos_url":"https://api.github.com/users/TheWrathOfConst/repos","events_url":"https://api.github.com/users/TheWrathOfConst/events{/privacy}","received_events_url":"https://api.github.com/users/TheWrathOfConst/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2015-04-10T16:30:28Z","updated_at":"2015-05-18T20:57:41Z","due_on":"2015-04-30T07:00:00Z","closed_at":null},"comments":2,"created_at":"2015-03-11T14:28:29Z","updated_at":"2015-05-18T20:57:41Z","closed_at":"2015-05-18T20:57:41Z","body":"The problem is that the template is set to a BUTTON element by default. WinJS throws an error if the element is not of type DIV. \r\n\r\nBasically to fix this, I believe you need to add a compile function to the directive and replace the element based on it's type. \r\n\r\n    if(type == 'content')\r\n        template = \"<div ng-transclude='true'></div>\";\r\n    else\r\n        template = \"<button ng-transclude='true'></button>\"\r\n\r\n    element.replaceWith(template);"},"comment":{"url":"https://api.github.com/repos/winjs/angular-winjs/issues/comments/103209216","html_url":"https://github.com/winjs/angular-winjs/issues/9#issuecomment-103209216","issue_url":"https://api.github.com/repos/winjs/angular-winjs/issues/9","id":103209216,"user":{"login":"TheWrathOfConst","id":6990048,"avatar_url":"https://avatars.githubusercontent.com/u/6990048?v=3","gravatar_id":"","url":"https://api.github.com/users/TheWrathOfConst","html_url":"https://github.com/TheWrathOfConst","followers_url":"https://api.github.com/users/TheWrathOfConst/followers","following_url":"https://api.github.com/users/TheWrathOfConst/following{/other_user}","gists_url":"https://api.github.com/users/TheWrathOfConst/gists{/gist_id}","starred_url":"https://api.github.com/users/TheWrathOfConst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheWrathOfConst/subscriptions","organizations_url":"https://api.github.com/users/TheWrathOfConst/orgs","repos_url":"https://api.github.com/users/TheWrathOfConst/repos","events_url":"https://api.github.com/users/TheWrathOfConst/events{/privacy}","received_events_url":"https://api.github.com/users/TheWrathOfConst/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T20:57:41Z","updated_at":"2015-05-18T20:57:41Z","body":"Sure can!"}}