My HTML docs look like this:

```
<div>
        ...
     <button ng-click='cos.contentsRetrieve()'>
         Retrieve
     </button>

```

In my angular-ui-router appConfig I have:

```
controller: ['$scope','contentService', 'enumService', 
            function ($scope, contentService, enumService) {
                $scope.cos = contentService;
                $scope.ens = enumService;
        }],

```

My service (and the interface file for it define things like the contentsRetrieve() function. 

Is this the correct way for me to be linking the services and the HTML? Also is there any way with AngularJS 1.4 that I can have any type checking of the functions (in this case 'cos.contentsRetrieve' ? I assume the answer is not until I use Angular 2 but I would just like to be sure I am on the right track right now.