angularjs update rest