{"action":"created","issue":{"url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads/issues/4","repository_url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads","labels_url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads/issues/4/comments","events_url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads/issues/4/events","html_url":"https://github.com/videogular/bower-videogular-ima-ads/issues/4","id":144674710,"number":4,"title":"Extending Directive","user":{"login":"esuveyke","id":10297400,"avatar_url":"https://avatars.githubusercontent.com/u/10297400?v=3","gravatar_id":"","url":"https://api.github.com/users/esuveyke","html_url":"https://github.com/esuveyke","followers_url":"https://api.github.com/users/esuveyke/followers","following_url":"https://api.github.com/users/esuveyke/following{/other_user}","gists_url":"https://api.github.com/users/esuveyke/gists{/gist_id}","starred_url":"https://api.github.com/users/esuveyke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esuveyke/subscriptions","organizations_url":"https://api.github.com/users/esuveyke/orgs","repos_url":"https://api.github.com/users/esuveyke/repos","events_url":"https://api.github.com/users/esuveyke/events{/privacy}","received_events_url":"https://api.github.com/users/esuveyke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-30T18:05:39Z","updated_at":"2016-04-01T13:00:15Z","closed_at":"2016-04-01T13:00:15Z","body":"Im looking to extend the directive and looking for an elegant way to do so.  Using a simple example of adding an event handler.  My other case is much more intensive.  But would like to start here:\r\n\r\nGiven \"scope.onAdsManagerLoaded\" @line 120 ish...\r\n\r\n                scope.onAdsManagerLoaded = function onAdsManagerLoaded(adsManagerLoadedEvent) {                    \r\n                    scope.show();\r\n                    adsManager = adsManagerLoadedEvent.getAdsManager(API.mediaElement[0]);\r\n                    \r\n                  // START ADDITION\r\n                    adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,\r\n                        function(adEvent){\r\n                            console.log(\"adData\",adEvent.getAd());\r\n                        }\r\n                    );\r\n                  // END ADDITION\r\n                    \r\n                    scope.processAdsManager(adsManager);\r\n                };"},"comment":{"url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads/issues/comments/204389839","html_url":"https://github.com/videogular/bower-videogular-ima-ads/issues/4#issuecomment-204389839","issue_url":"https://api.github.com/repos/videogular/bower-videogular-ima-ads/issues/4","id":204389839,"user":{"login":"Elecash","id":790704,"avatar_url":"https://avatars.githubusercontent.com/u/790704?v=3","gravatar_id":"","url":"https://api.github.com/users/Elecash","html_url":"https://github.com/Elecash","followers_url":"https://api.github.com/users/Elecash/followers","following_url":"https://api.github.com/users/Elecash/following{/other_user}","gists_url":"https://api.github.com/users/Elecash/gists{/gist_id}","starred_url":"https://api.github.com/users/Elecash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elecash/subscriptions","organizations_url":"https://api.github.com/users/Elecash/orgs","repos_url":"https://api.github.com/users/Elecash/repos","events_url":"https://api.github.com/users/Elecash/events{/privacy}","received_events_url":"https://api.github.com/users/Elecash/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T13:00:15Z","updated_at":"2016-04-01T13:00:15Z","body":"You're welcome :smile: "}}