{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/1821","labels_url":"https://api.github.com/repos/angular/material/issues/1821/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/1821/comments","events_url":"https://api.github.com/repos/angular/material/issues/1821/events","html_url":"https://github.com/angular/material/issues/1821","id":60195392,"number":1821,"title":"mdBottomSheet:  getting \"TypeError: undefined is not a function\" when trying to $mdBottomSheet.show ","user":{"login":"johnlim5847","id":3675946,"avatar_url":"https://avatars.githubusercontent.com/u/3675946?v=3","gravatar_id":"","url":"https://api.github.com/users/johnlim5847","html_url":"https://github.com/johnlim5847","followers_url":"https://api.github.com/users/johnlim5847/followers","following_url":"https://api.github.com/users/johnlim5847/following{/other_user}","gists_url":"https://api.github.com/users/johnlim5847/gists{/gist_id}","starred_url":"https://api.github.com/users/johnlim5847/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnlim5847/subscriptions","organizations_url":"https://api.github.com/users/johnlim5847/orgs","repos_url":"https://api.github.com/users/johnlim5847/repos","events_url":"https://api.github.com/users/johnlim5847/events{/privacy}","received_events_url":"https://api.github.com/users/johnlim5847/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/Demo%20Needed","name":"Demo Needed","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/11","html_url":"https://github.com/angular/material/milestones/Backlog","labels_url":"https://api.github.com/repos/angular/material/milestones/11/labels","id":865967,"number":11,"title":"Backlog","description":"Grouping for issues that have been reviewed and require further information before assignment to milestone is possible.","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":71,"closed_issues":33,"state":"open","created_at":"2014-11-14T00:54:02Z","updated_at":"2015-03-18T22:07:38Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-03-07T07:17:46Z","updated_at":"2015-03-23T08:03:47Z","closed_at":null,"body":"hey guys I have follow exactly what the demo page shows however i still getting this error when i try to open a bottom sheet. i'm using angularjs 1.3.14 and i have try on 1.3.6 as well.besides, i have follow the instruction on Getting started page to Including Angular Material and its dependencies \r\n```javascript\r\nangular.module('app').controller('MasterCtrl', [\r\n  '$http',\r\n  '$scope',\r\n  '$location',\r\n  '$rootScope',\r\n  '$timeout',\r\n  '$mdBottomSheet',\r\n  function ($http, $scope, $location, $rootScope, $mdBottomSheet, $timeout) {\r\n      $scope.alert = '';\r\n  $scope.showGridBottomSheet = function($event) {\r\n    $scope.alert = '';\r\n    $mdBottomSheet.show({ <-- line 37\r\n      templateUrl: 'bottom-sheet-grid-template.html',\r\n      controller: 'GridBottomSheetCtrl',\r\n      targetEvent: $event\r\n    }).then(function(clickedItem) {\r\n      $scope.alert = clickedItem.name + ' clicked!';\r\n    });\r\n  };\r\n  }\r\n]);\r\n```\r\nand this is the error\r\n![selection_002](https://cloud.githubusercontent.com/assets/3675946/6540524/1648090c-c4dc-11e4-8a42-e0fd73bf4e0a.png)\r\n\r\nyour help is appreciated, thanks ! "},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/84873123","html_url":"https://github.com/angular/material/issues/1821#issuecomment-84873123","issue_url":"https://api.github.com/repos/angular/material/issues/1821","id":84873123,"user":{"login":"ftaljaard","id":8086774,"avatar_url":"https://avatars.githubusercontent.com/u/8086774?v=3","gravatar_id":"","url":"https://api.github.com/users/ftaljaard","html_url":"https://github.com/ftaljaard","followers_url":"https://api.github.com/users/ftaljaard/followers","following_url":"https://api.github.com/users/ftaljaard/following{/other_user}","gists_url":"https://api.github.com/users/ftaljaard/gists{/gist_id}","starred_url":"https://api.github.com/users/ftaljaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftaljaard/subscriptions","organizations_url":"https://api.github.com/users/ftaljaard/orgs","repos_url":"https://api.github.com/users/ftaljaard/repos","events_url":"https://api.github.com/users/ftaljaard/events{/privacy}","received_events_url":"https://api.github.com/users/ftaljaard/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T08:03:47Z","updated_at":"2015-03-23T08:03:47Z","body":"Hallo, solve my problem. The \"item list\" was created dynamically by the controller this same controller \"open\" the list and uses the same controller. When you assign the controller a new instance gets created so my \"item list\" was lost. Resolved it by shared service. "}}