{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material/issues/6203","labels_url":"https://api.github.com/repos/angular/material/issues/6203/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/6203/comments","events_url":"https://api.github.com/repos/angular/material/issues/6203/events","html_url":"https://github.com/angular/material/issues/6203","id":121299791,"number":6203,"title":"How to get $element in md-dialog controller?","user":{"login":"kzhdev","id":1855243,"avatar_url":"https://avatars.githubusercontent.com/u/1855243?v=3","gravatar_id":"","url":"https://api.github.com/users/kzhdev","html_url":"https://github.com/kzhdev","followers_url":"https://api.github.com/users/kzhdev/followers","following_url":"https://api.github.com/users/kzhdev/following{/other_user}","gists_url":"https://api.github.com/users/kzhdev/gists{/gist_id}","starred_url":"https://api.github.com/users/kzhdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzhdev/subscriptions","organizations_url":"https://api.github.com/users/kzhdev/orgs","repos_url":"https://api.github.com/users/kzhdev/repos","events_url":"https://api.github.com/users/kzhdev/events{/privacy}","received_events_url":"https://api.github.com/users/kzhdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-09T17:38:03Z","updated_at":"2015-12-09T23:31:00Z","closed_at":"2015-12-09T23:31:00Z","body":"Add $element to md-dialog controller cause an error:\r\n```\r\nfunction blockEditorCtrl($scope, $element, $mdDialog) {\r\n```\r\nError: [$injector:unpr] Unknown provider: $elementProvider <- $element <- blockEditorController\r\n\r\nIs it a bug?"}}