{"action":"created","issue":{"url":"https://api.github.com/repos/OpenBEL/belmgr/issues/30","labels_url":"https://api.github.com/repos/OpenBEL/belmgr/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/OpenBEL/belmgr/issues/30/comments","events_url":"https://api.github.com/repos/OpenBEL/belmgr/issues/30/events","html_url":"https://github.com/OpenBEL/belmgr/issues/30","id":121536368,"number":30,"title":"Options to improve typeahead code","user":{"login":"wshayes","id":365303,"avatar_url":"https://avatars.githubusercontent.com/u/365303?v=3","gravatar_id":"","url":"https://api.github.com/users/wshayes","html_url":"https://github.com/wshayes","followers_url":"https://api.github.com/users/wshayes/followers","following_url":"https://api.github.com/users/wshayes/following{/other_user}","gists_url":"https://api.github.com/users/wshayes/gists{/gist_id}","starred_url":"https://api.github.com/users/wshayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wshayes/subscriptions","organizations_url":"https://api.github.com/users/wshayes/orgs","repos_url":"https://api.github.com/users/wshayes/repos","events_url":"https://api.github.com/users/wshayes/events{/privacy}","received_events_url":"https://api.github.com/users/wshayes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"wshayes","id":365303,"avatar_url":"https://avatars.githubusercontent.com/u/365303?v=3","gravatar_id":"","url":"https://api.github.com/users/wshayes","html_url":"https://github.com/wshayes","followers_url":"https://api.github.com/users/wshayes/followers","following_url":"https://api.github.com/users/wshayes/following{/other_user}","gists_url":"https://api.github.com/users/wshayes/gists{/gist_id}","starred_url":"https://api.github.com/users/wshayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wshayes/subscriptions","organizations_url":"https://api.github.com/users/wshayes/orgs","repos_url":"https://api.github.com/users/wshayes/repos","events_url":"https://api.github.com/users/wshayes/events{/privacy}","received_events_url":"https://api.github.com/users/wshayes/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-10T17:20:44Z","updated_at":"2015-12-13T18:51:56Z","closed_at":"2015-12-13T18:51:55Z","body":"In context-item.js  -- change from trigger on <li> element to suggestions below.\r\n\r\nFrom Gitter:\r\n\r\nTylerJPresley 12:12\r\nOnly use delegate when you want to catch a bubbled event.\r\nSay you have a ul with a dynamic set of <li> elements\r\ninstead of setting an event on each of them, you can set it on the UL with delegate\r\nclick event bubbles up to the parent if it's not handled on the element itself.\r\n\r\nadarshpastakia 12:16\r\n@TylerJPresley ya but in his trigger call he is passing the current repeat object\r\n\r\nThe1nternet 12:16\r\nis there a skeleton-navigation for typescript?\r\n\r\nTylerJPresley 12:16\r\nI always pass the $index and access it from the backend\r\n\r\nadarshpastakia 12:17\r\n@wshayes @TylerJPresley so to use delegate on the ul you can add this to your a tag data-type=\"${type}\" and in the ul click.delegate=\"changeType($event)\"\r\n\r\nwshayes 12:17\r\nThanks!\r\n\r\nadarshpastakia 12:17\r\nchangeType(e){ if(e.target.tagName='a') type=e.target.getAttribute('data-type')}\r\n\r\nTyler:\r\n<a click.trigger=\"myEvent($index)\">button</a>\r\ndoStuff(index) {\r\n     this.myDataArray[index];\r\n}"},"comment":{"url":"https://api.github.com/repos/OpenBEL/belmgr/issues/comments/164287471","html_url":"https://github.com/OpenBEL/belmgr/issues/30#issuecomment-164287471","issue_url":"https://api.github.com/repos/OpenBEL/belmgr/issues/30","id":164287471,"user":{"login":"wshayes","id":365303,"avatar_url":"https://avatars.githubusercontent.com/u/365303?v=3","gravatar_id":"","url":"https://api.github.com/users/wshayes","html_url":"https://github.com/wshayes","followers_url":"https://api.github.com/users/wshayes/followers","following_url":"https://api.github.com/users/wshayes/following{/other_user}","gists_url":"https://api.github.com/users/wshayes/gists{/gist_id}","starred_url":"https://api.github.com/users/wshayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wshayes/subscriptions","organizations_url":"https://api.github.com/users/wshayes/orgs","repos_url":"https://api.github.com/users/wshayes/repos","events_url":"https://api.github.com/users/wshayes/events{/privacy}","received_events_url":"https://api.github.com/users/wshayes/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T18:51:55Z","updated_at":"2015-12-13T18:51:55Z","body":"Closing for now - may re-address this later"}}