i can't make it works. Could somebody help me? I would like to show user detail information after click on link, but i don't know how to send information to php file with a link.
i have link to detailed user information like:
<tr ng-repeat="user in users | filter:searchText | orderBy:'finish_date'">
<td><a href="#/user/{{user.user_id}}">{{user.name + ' ' + user.lastname}}</a></td>
<td> {{user.begin_date}}</td>
<td> {{user.finish_date}}</td>
</tr>
and controller:
gymiControllers.controller('UserDetailCtrl', ['$scope', '$http', function ($scope, $http) {
console.log($scope.user.user_id);
$http.get('php/UserDetailsGetData.php?user_id=user.user_id"').success(function(data) {
$scope.user = data;
});
}]);
and php file, which should get variable from angular ;-):
$user_id = $_GET['user_id'];