Couldn't you use angular $parse service for all this :-)?

```js
var obj = { object: { property: 'test' } };
var getter = $parse('object.property', );
getter(); //--> 'test'
var setter = getter.assign;
setter(obj, 'test2');
obj; // --> { object: { property: 'test2' } }
```