Below is my table's html code - 
<table id="srchTable" style="width:100%; font-size:0.85em;"">
 <thead>
   <tr>
     <th>Name</th>
     <th>Age</th>
     <th>Salary</th>
   </tr>
 </thead>
 <tr ng-repeat="jsonSearchData in searchData">
   <td><a id="link1" href="" ng-click="openPopUp()">{{jsonSearchData.Name}}</a></td>
   <td>{{jsonSearchData.Age}}</td>
   <td>{{jsonSearchData.Salary}}</td>
 </tr>
</table>
This is js code for table - 
$('#srchTable').dataTable();
I am populating table from json result. Below is the json - 
[{  
      "Name":"Sam",
      "Age":"25",
      "Salary":"$25000"
 },
 {
      "Name":"Phillip",
      "Age":"25",
      "Salary":"$30000"
 }]
Now when I am clicking on sort icons table is showing No data available in table message. And same thing is happeing when I am trying to search in data table.
I tried below code but it didn't worked. 
$('#srchTable').dataTable({
  "ordering":true,
  "searching": true
});
Please help.
 
     
    