Angularjs имеет $ http сервис, поэтому вы можете сделать так:
Ваш html:
<input type='text', ng-model='user.username' />
<button ng-click='hitApi(user)'>Hit</button>
Ваш контроллер:
$scope.user = {}; // in this object you are binding your data.
const hitApi = (data) => {
$http.post('url', data)
// send that data to backend using post method
.then((response) => {
console.log(response.data);
});
});