Why can't you just do this?

```javascript
$scope.gpgKeys = function() {
    ...
};
```