If I assign an object in a factory like this:
$http.get('/api/whatever').success(function(data) {
result = data.obj
});
It gives result a new address and therefore the reference from my controller to the result
is broken.
How to assign it then? Value by value works, but seems not the right way. How to watch an object properly?