im just tryin to pass a parametr into location.path,
$http({
method: 'POST',
url: '../controller/subscriber.php',
data: $scope.data,
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
})
.success(function (data) {
if (data.error === "false") {
$location.path("/group/detail/$routeParams.gId");
}
});