I need to edit data when I am calling ng-click. Below is the code:
<tr class="read" ng-repeat="data in records>
<td>
{{data.requestId}}
</td>
<td>
{{data.status}}
</td>
<a height="20" class="pointer"
ng-click="download(data.downloadPath)" target="_self"></a>
</td>
e.g. - If the value of data.downloadPath is /opt/dummy/file.txt, I need to remove the first forward slash and give the path as: opt/dummy/file.txt
Is it possible to edit here in angularjs or do I need to edit the controller code:
someSrv.someFunction()
.success(function(response){
$scope.records = response.data;
}