// do I need to create a getCurrent to keep bindings?
// or would current: current be enough?
// will bindings to someValue be kept?
function someService() {
var current = {
status: ''
};
var someValue = 'hello';
//////////
var service = {
current: current,
getCurrent: getCurrent,
status: current.status,
someValue: someValue
};
return service;
//////////
function getCurrent() {
return current;
}
}