update post angularjs