{"action":"created","issue":{"url":"https://api.github.com/repos/Credera/angular-bing-maps/issues/28","labels_url":"https://api.github.com/repos/Credera/angular-bing-maps/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/Credera/angular-bing-maps/issues/28/comments","events_url":"https://api.github.com/repos/Credera/angular-bing-maps/issues/28/events","html_url":"https://github.com/Credera/angular-bing-maps/issues/28","id":101427218,"number":28,"title":"Creating Events","user":{"login":"AleskiWeb","id":8318899,"avatar_url":"https://avatars.githubusercontent.com/u/8318899?v=3","gravatar_id":"","url":"https://api.github.com/users/AleskiWeb","html_url":"https://github.com/AleskiWeb","followers_url":"https://api.github.com/users/AleskiWeb/followers","following_url":"https://api.github.com/users/AleskiWeb/following{/other_user}","gists_url":"https://api.github.com/users/AleskiWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/AleskiWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleskiWeb/subscriptions","organizations_url":"https://api.github.com/users/AleskiWeb/orgs","repos_url":"https://api.github.com/users/AleskiWeb/repos","events_url":"https://api.github.com/users/AleskiWeb/events{/privacy}","received_events_url":"https://api.github.com/users/AleskiWeb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-17T14:01:54Z","updated_at":"2015-08-19T07:47:13Z","closed_at":null,"body":"Hi again,\r\n\r\nI am trying to create an event for a 'viewchange' handler. However I can't seem to ever get into the function that is to be called when the handler detects a change. For example I am passing in the following object using the attribute for \"data-events\":\r\n$scope.events = {\r\n        viewChange: 'viewchange'\r\n};\r\n\r\nInside the $scope.$watch('events', function (events) function inside the angular-bing-maps.js:\r\nvar bingMapsHandler = Microsoft.Maps.Events.addHandler($scope.map, eventName, function (event) {\r\n    console.log(event);\r\n    console.log('test');\r\n    console.log('eventName');\r\n    console.log('usersHandler);\r\n    usersHandler(event);\r\n    $scope.$apply();\r\n});\r\n\r\nNone of the console logs are returning anything (not even undefinded) so I was wondering if there was anything amiss here? Would you have an example on the correct implementation as I am sure it's a problem on my end ofcourse :dancers: "},"comment":{"url":"https://api.github.com/repos/Credera/angular-bing-maps/issues/comments/132480394","html_url":"https://github.com/Credera/angular-bing-maps/issues/28#issuecomment-132480394","issue_url":"https://api.github.com/repos/Credera/angular-bing-maps/issues/28","id":132480394,"user":{"login":"AleskiWeb","id":8318899,"avatar_url":"https://avatars.githubusercontent.com/u/8318899?v=3","gravatar_id":"","url":"https://api.github.com/users/AleskiWeb","html_url":"https://github.com/AleskiWeb","followers_url":"https://api.github.com/users/AleskiWeb/followers","following_url":"https://api.github.com/users/AleskiWeb/following{/other_user}","gists_url":"https://api.github.com/users/AleskiWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/AleskiWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleskiWeb/subscriptions","organizations_url":"https://api.github.com/users/AleskiWeb/orgs","repos_url":"https://api.github.com/users/AleskiWeb/repos","events_url":"https://api.github.com/users/AleskiWeb/events{/privacy}","received_events_url":"https://api.github.com/users/AleskiWeb/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T07:47:13Z","updated_at":"2015-08-19T07:47:13Z","body":"What would the theory/plan be for this? I'd love to have a crack at doing it but I wouldn't really know where to start. Do you mean service in the typical sense (provider/service/factory)? Would this just be set when the map instantiates in the bingMap directive and then exposed to the application so you can reference it (like 'var map = ServiceThatStoresMap.map) so that you can then run a .getZoomLevel on that?"}}