Advertisement
Guest User

Untitled

a guest
Apr 13th, 2017
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. [["22","Aiolinhos","23","goldsaint@gmail.com.br","Administradores","SIM"],["20","Aiorinhos","21","goldsaint@gmail.com.br","Administradores","SIM"],["6","Aldebas","7","goldsaint@gmail.com.br","Administradores","SIM"],["12","Caminhus","13","goldsaint@gmail.com.br","Administradores","SIM"],["18","Ditinho","19","goldsaint@gmail.com.br","Administradores","SIM"],["3","Dohkinho","3","goldsaint@gmail.com.br","Administradores","SIM"],["8","Kanonzinho","9","goldsaint@gmail.com.br","Administradores","SIM"],["14","Milinho","15","goldsaint@gmail.com.br","Administradores","SIM"],["4","Muzinho","4","goldsaint@gmail.com.br","Administradores","SIM"],["2","Saguinha","2","goldsaint@gmail.com.br","Administradores","SIM"],["1","Shakinha","1","goldsaint@gmail.com.br","Administradores","SIM"],["16","Shionzinho","17","goldsaint@gmail.com.br","Administradores","SIM"],["10","Shurinha","11","goldsaint@gmail.com.br","Administradores","SIM"]]
  2.  
  3. > <div class="container"> <div class="jumbotron">
  4. >
  5. > <div class="row">
  6. > <div class="col-xs-12 text-right">
  7. > <button type="button" class="btn btn-secondary" ng-click="create()">Novo</button>
  8. > </div>
  9. > </div>
  10. >
  11. > <table class="table table-hover">
  12. > <thead>
  13. > <tr>
  14. > <td ng-repeat="header in headers track by $index">{{header}}</td>
  15. > <td ng-if="headers.length">Editar / Remover</td>
  16. > </tr>
  17. > </thead>
  18. > <tr ng-repeat="row in rows">
  19. > <td ng-repeat="cell in row" >{{cell}}</td>
  20. > <td ng-if="row.length"><button type="button" class="btn btn-secondary glyphicon glyphicon-pencil"
  21. > ng-click="edit(row)"></button>
  22. > <button type="button" class="btn btn-danger glyphicon glyphicon-trash" ng-click="delete(row)"></button></td>
  23. > </tr>
  24. > </table> </div> </div>
  25. >
  26. >
  27. > crudservice.listModel($routeParams.model).then(function(response){
  28. > if(response.data.status == 1){
  29. > var data = response.data;
  30. > console.log(JSON.parse(data.headers));
  31. > console.log(JSON.parse(data.rows));
  32. > $scope.headers = JSON.parse(data.headers);
  33. > $scope.rows = JSON.parse(data.rows);
  34. > }
  35. > });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement