Instead of defining this on the scope you could chain a `$promise`, that way you wouldn't even have to make `$scope.resetTypes()` a function and also wouldn't have to override it in `date-type-errata-filter.controller.js`.

```javascript
$scope.filter.$promise.then(function () {
    $scope.types = {
        enhancement: false,
        bugfix: false,
        security: false
    }
});
```