{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/5947","labels_url":"https://api.github.com/repos/angular/material/issues/5947/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/5947/comments","events_url":"https://api.github.com/repos/angular/material/issues/5947/events","html_url":"https://github.com/angular/material/issues/5947","id":119107820,"number":5947,"title":"$mdDialog returning an error when calling textContent","user":{"login":"darkmavis1980","id":2980681,"avatar_url":"https://avatars.githubusercontent.com/u/2980681?v=3","gravatar_id":"","url":"https://api.github.com/users/darkmavis1980","html_url":"https://github.com/darkmavis1980","followers_url":"https://api.github.com/users/darkmavis1980/followers","following_url":"https://api.github.com/users/darkmavis1980/following{/other_user}","gists_url":"https://api.github.com/users/darkmavis1980/gists{/gist_id}","starred_url":"https://api.github.com/users/darkmavis1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkmavis1980/subscriptions","organizations_url":"https://api.github.com/users/darkmavis1980/orgs","repos_url":"https://api.github.com/users/darkmavis1980/repos","events_url":"https://api.github.com/users/darkmavis1980/events{/privacy}","received_events_url":"https://api.github.com/users/darkmavis1980/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T22:47:29Z","updated_at":"2015-11-27T05:51:02Z","closed_at":null,"body":"I have this rather simple code to open a dialog once the user click on a button, on my controller I have the following code, not far from the sample one found on the documentation:\r\n\r\n```\r\n$scope.confirmDelete = function() {\r\n      $mdDialog.show(\r\n        $mdDialog.alert()\r\n        .title('Confirm delete?')\r\n        .clickOutsideToClose(true)\r\n        .textContent('Hello world')\r\n        .ok('Yes')\r\n        .targetEvent(originatorEv)\r\n      );\r\n      originatorEv = null;\r\n    };\r\n```\r\n\r\nAnd my browser log this error\r\n\r\n```\r\nError: $mdDialog.alert(...).title(...).clickOutsideToClose(...).textContent is not a function\r\n```\r\nBut if I remove the **textContent** function it works perfectly, any idea?"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/160048934","html_url":"https://github.com/angular/material/issues/5947#issuecomment-160048934","issue_url":"https://api.github.com/repos/angular/material/issues/5947","id":160048934,"user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T05:51:02Z","updated_at":"2015-11-27T05:51:02Z","body":"What Angular Material Version ate you using?\n"}}