When I loop through the $http post service for Angularjs
for (var i = 0; i < $scope.tagStyles.length; i++) { $scope.profilTag.tag = $scope.tagStyles[i].
It is happened because request makes asynchronously. Real requests are sending after all iterations have completeted. Try send copy of params like this
$http.post('/ajouterProfilTag',angular.copy($scope.profilTag))