So, I'm a beginner in angularjs, the result of the table is generated when I use a function to detail the clients, this function uses a response (array) inside a FOR (it generates a loop with the list of clients), hence this response to popular table through the data-ng-repeat, so far the table returns all clients need to restrict pending shipping clients ...
The problem is: I can not access the database only the variable that comes through an array, I tried to deal with ng-if directly in the table but it ends up disappearing with the column (I do not know if I applied in the correct place), I believe that one of the ways to do this treatment would be when I call the function to filter the clients, I confess that I am not able to do this ...
Apply ng-if in DIV screwed the rederization, to see the error in the console (firebug) (Error: [$ parse: ueoe] Unexpected end of expression: item.stado CurrentClient! ==)
I believe that I have to apply when I call the function that details the clients, within the function that details the clients I have two FOR, each one makes a treatment in the end I have an array with the total list of clients, that part that does not to getting a preview of how it would look ... would it be okay to create a third treatment within that loop ??
(I think ...) a good practice would be to do this treatment outside of FOR to facilitate maintenance, I tried to do this but I could not finish ...
self.filtrarSituacao = function(estadoAtualCliente){
return self.filtroSituacaoCliente.filter (function filtrar (estadoAtualCliente){
return filtroSituacaoCliente !== ('Pendente de Envio');
});
ps: I've been waiting for the answer because I was testing the possibilities here, I'd better read the foreach