In angular after making a GET request I have to do the following to match up all the values up.
promise.then(function(object){
$scope.name = object.name
$scope.domain = object.domain
etc
})
There must be a better way to do this so I don't have to hardcode all the values i.e.
$scope = object
or maybe a loop that matches them?