{"action":"created","issue":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/365","labels_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/365/comments","events_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/365/events","html_url":"https://github.com/l-lin/angular-datatables/issues/365","id":92947224,"number":365,"title":"dt-instance directive not working for controllerAs","user":{"login":"ajoslin103","id":443893,"avatar_url":"https://avatars.githubusercontent.com/u/443893?v=3","gravatar_id":"","url":"https://api.github.com/users/ajoslin103","html_url":"https://github.com/ajoslin103","followers_url":"https://api.github.com/users/ajoslin103/followers","following_url":"https://api.github.com/users/ajoslin103/following{/other_user}","gists_url":"https://api.github.com/users/ajoslin103/gists{/gist_id}","starred_url":"https://api.github.com/users/ajoslin103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajoslin103/subscriptions","organizations_url":"https://api.github.com/users/ajoslin103/orgs","repos_url":"https://api.github.com/users/ajoslin103/repos","events_url":"https://api.github.com/users/ajoslin103/events{/privacy}","received_events_url":"https://api.github.com/users/ajoslin103/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-03T23:11:32Z","updated_at":"2015-07-19T15:07:03Z","closed_at":"2015-07-19T15:07:03Z","body":"vm.dtInstance is not set after the table is rendered -- all other vm.<whatever'> work\r\n\r\nhtml\r\n\r\n\t<div class=\"vers1 v1-booklets-booklets\" ng-controller=\"BookletsBookletsListCtrl as vm\">\r\n\t    <table id=\"v1-booklets-booklets\" datatable=\"\" dt-options=\"vm.dtOptions\" dt-columns=\"vm.dtColumns\" class=\"{{vm.dtClasses}}\" dt-instance=\"vm.dtInstance\"></table>\r\n\t\t<div class=\"hide-remove\"><action-icon-set id=\"TAB-Booklets\" class=\"dataTables_actionIcons\" data-entity-id=\"41\" data-entity-type=\"booklet\" actions=\"refreshTable,newBooklet\"/></div>\r\n\t</div>\r\n\r\njavascript \r\n\r\n\t\t\t\tvm.dtInstance.reloadData();\r\n\r\nTypeError: Cannot read property 'reloadData' of undefined\r\n    at booklets-booklets-list.js:94\r\n    at Scope.parent.$get.Scope.$emit (angular.js:14793)\r\n    at angular-action-icons.js:117\r\n\r\nI have to use the old method -- and I get warned\r\n\r\n\r\nangular.js:11699 \"DTInstances.getLast()\" and \"DTInstances.getList()\" are deprecated! Use the \"dt-instance\" to provide the datatables instance. See https://l-lin.github.com/angular-datatables/#/manipulatingDTInstances for more information.\r\n"},"comment":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/comments/122670542","html_url":"https://github.com/l-lin/angular-datatables/issues/365#issuecomment-122670542","issue_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/365","id":122670542,"user":{"login":"ajoslin103","id":443893,"avatar_url":"https://avatars.githubusercontent.com/u/443893?v=3","gravatar_id":"","url":"https://api.github.com/users/ajoslin103","html_url":"https://github.com/ajoslin103","followers_url":"https://api.github.com/users/ajoslin103/followers","following_url":"https://api.github.com/users/ajoslin103/following{/other_user}","gists_url":"https://api.github.com/users/ajoslin103/gists{/gist_id}","starred_url":"https://api.github.com/users/ajoslin103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajoslin103/subscriptions","organizations_url":"https://api.github.com/users/ajoslin103/orgs","repos_url":"https://api.github.com/users/ajoslin103/repos","events_url":"https://api.github.com/users/ajoslin103/events{/privacy}","received_events_url":"https://api.github.com/users/ajoslin103/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T15:07:03Z","updated_at":"2015-07-19T15:07:03Z","body":"finally had a chance to come back to this and this worked - master branch - 0.4.3\r\n\r\n"}}