I need to get the account id that is displayed in the html below. I need to get this id to take to my backend and bring the data and edit, but I can not.
Here are my codes:
<div class="col-md-6 tabelaEntradas" ng-controller="EditarContaCtrl">
<table width="400">
<tr>
<th>Subcategoria</th>
<th>Conta</th>
<th>Editar</th>
</tr>
<tr ng-repeat="contaE in contasEntrada">
<td>{{contaE.subcategoria}}</td>
<td>{{contaE.conta}}</td>
<td><a href="#/editarConta/{{contaE.idconta}}">editar</a></td>
</tr>
</table>
</div>
My controller:
app.controller("EditarContaCtrl", function ($scope, $http, $window, $routeParams) {
var idempresa = $window.localStorage.getItem('idemp');
var empresa = $window.localStorage.getItem('empresa');
var usuario = $window.localStorage.getItem('usuario');
var idusuario = $window.localStorage.getItem('idusuario');
$scope.empresa = empresa;
$scope.usuario = usuario;
var pegarContaEntrada = function(contaE){
console.log(contaE);
}
pegarContaEntrada();
});