{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3550","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3550/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3550/comments","events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3550/events","html_url":"https://github.com/angular-ui/ng-grid/issues/3550","id":78969248,"number":3550,"title":"Can cellFilter pass the controller scope?","user":{"login":"yaring","id":2077333,"avatar_url":"https://avatars.githubusercontent.com/u/2077333?v=3","gravatar_id":"","url":"https://api.github.com/users/yaring","html_url":"https://github.com/yaring","followers_url":"https://api.github.com/users/yaring/followers","following_url":"https://api.github.com/users/yaring/following{/other_user}","gists_url":"https://api.github.com/users/yaring/gists{/gist_id}","starred_url":"https://api.github.com/users/yaring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaring/subscriptions","organizations_url":"https://api.github.com/users/yaring/orgs","repos_url":"https://api.github.com/users/yaring/repos","events_url":"https://api.github.com/users/yaring/events{/privacy}","received_events_url":"https://api.github.com/users/yaring/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-21T12:13:13Z","updated_at":"2015-05-25T23:31:56Z","closed_at":"2015-05-25T23:31:56Z","body":"Hi,\r\n\r\nI've the definition of the grid on the controller scope:\r\n```js\r\n$scope.users = { 1: 'User1', 2: 'User2'};\r\n$scope.gridOptions = {\r\n    columnDefs: [\r\n        { field: 'user_id', displayName: 'User Name', cellFilter: 'usersFilter:this' },\r\n    ]\r\n};\r\n```\r\nI also have some data store on the scope `$scope.users`.\r\nIs it possible to pass the `$scope.users` variable to the filter?\r\nThe only thing I did is to pass `this` but that gave my the inner grid scope which is not the controller scope.\r\n\r\n**Update:** \r\nI managed to get the `$scope.users` by doing\r\n```js\r\n{ field: 'user_id', displayName: 'User Name', cellFilter: 'usersFilter:$parent.$parent.$parent.$parent.$parent.$parent.$parent.users' }\r\n```\r\n**BUT** this looks ugly as hell, can someone suggest something better?\r\n\r\nThanks!"}}