How to fetch data of particular id in mysql using Angularjs

I have a PHP angularjs based web interface where I should fetch data of a particular user to edit when they are logged in using angular

all I can do is ng-repeat which fetches all the rows of all id’s

controller.js file

var crudApp = angular.module('crudApp',[]);
crudApp.controller("DbController",['$scope','$http', function($scope,$http){

  // Function to get employee details from the database
  function getInfo(){
    // Sending request to EmpDetails.php files
      // Stored the returned data into scope
      $scope.details = data;

index.php file

<tr ng-repeat="detail in details| filter:search_query">
    <td>{{$index + 1}}</td>
        <button class="btn btn-warning" ng-click="editInfo(detail)" title="Edit"> 
            <span class="glyphicon glyphicon-edit"></span>
        <button class="btn btn-danger" 
                ng-click="deleteInfo(detail)" title="Delete">
            <span class="glyphicon glyphicon-trash"></span>


// Including database connections
require_once 'database_connections.php';
// mysqli query to fetch all data from database
$query = "SELECT * from pokedstats";
$result = mysqli_query($con, $query);
$arr = array();
if(mysqli_num_rows($result) != 0) {
while($row = mysqli_fetch_assoc($result)) {
$arr[] = $row;
// Return json array containing data from the databasecon
echo $json_info = json_encode($arr);

I want to display only a particular id related row, but I can only be able to fetch all the rows values and display them and edit them. I only want a particular user with a unique id should only be able to edit the row data or delete it.

Source: AngularJS