angular working, posting api