function SampleController(configService) {
var vm = this;
Object.assign(vm,configService); //extend the controller with the properties of the configservice
// BTW if you have to support old browsers you might use angular.extend instead of Object.assign
// code ....
}