{"action":"created","issue":{"url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/450","labels_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/450/comments","events_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/450/events","html_url":"https://github.com/OnsenUI/OnsenUI/issues/450","id":57847990,"number":450,"title":"ng-click inside of dialog","user":{"login":"Hirbod","id":504909,"avatar_url":"https://avatars.githubusercontent.com/u/504909?v=3","gravatar_id":"","url":"https://api.github.com/users/Hirbod","html_url":"https://github.com/Hirbod","followers_url":"https://api.github.com/users/Hirbod/followers","following_url":"https://api.github.com/users/Hirbod/following{/other_user}","gists_url":"https://api.github.com/users/Hirbod/gists{/gist_id}","starred_url":"https://api.github.com/users/Hirbod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hirbod/subscriptions","organizations_url":"https://api.github.com/users/Hirbod/orgs","repos_url":"https://api.github.com/users/Hirbod/repos","events_url":"https://api.github.com/users/Hirbod/events{/privacy}","received_events_url":"https://api.github.com/users/Hirbod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OnsenUI/OnsenUI/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-16T20:28:05Z","updated_at":"2015-02-17T09:05:43Z","closed_at":null,"body":"Hi @argelius,\r\n\r\nseems like the dialog directive creates and isolated scope. How can I access the parent scope to invoke some click actions? (for example, I've created a login dialog and all my controller related stuff is in my LoginController, e.g. Facebook-Login, but my functions don't trigger in the dialog.\r\n\r\nAny fast solution for me?"},"comment":{"url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/comments/74636604","html_url":"https://github.com/OnsenUI/OnsenUI/issues/450#issuecomment-74636604","issue_url":"https://api.github.com/repos/OnsenUI/OnsenUI/issues/450","id":74636604,"user":{"login":"argelius","id":6549462,"avatar_url":"https://avatars.githubusercontent.com/u/6549462?v=3","gravatar_id":"","url":"https://api.github.com/users/argelius","html_url":"https://github.com/argelius","followers_url":"https://api.github.com/users/argelius/followers","following_url":"https://api.github.com/users/argelius/following{/other_user}","gists_url":"https://api.github.com/users/argelius/gists{/gist_id}","starred_url":"https://api.github.com/users/argelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argelius/subscriptions","organizations_url":"https://api.github.com/users/argelius/orgs","repos_url":"https://api.github.com/users/argelius/repos","events_url":"https://api.github.com/users/argelius/events{/privacy}","received_events_url":"https://api.github.com/users/argelius/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T09:05:43Z","updated_at":"2015-02-17T09:05:43Z","body":"No, sorry. Since it isn't attached as a child in the DOM I think there's no nice way to do that.\r\n\r\nYou can always to something like this to get the \"parent\" scope:\r\n```javascript\r\n$scope.parentScope = angular.element(document.querySelector('.element-with-controller')).scope();\r\n```\r\n\r\nNot very nice though :)"}}