It's probably wrong to do it this way, but only then did I find datatable functionality.
<div class="panel-body">
<script type="text/javascript">
jQuery(document).ready(function($)
{
$("#example-1").DataTable({
"ajax": {
"url": "http://162.100.100.100/proyecto/public/ws/usuarios",
"dataSrc": "records"
},
"columns": [
{ "data": "id" },
{ "data": "nombre1" },
{ "data": "apellido1" },
{ "data": "usuario" },
{ "data": "idtipousuario" },
{ "defaultContent": "<button class='btn btn-icon btn-info' ng-click='openModal(dataUsuario,'modal-2', 'lg');'><i class='fa-edit'></i></button>" }
]
});
$('#example-1').on( 'click', 'button', function () {
//var data = table.row( $(this).parents('tr') ).data();
console.log("Mostrar Modal")
});
});
</script>
For every record I filled in the table, I add a button
"defaultContent": "<button class='btn btn-icon btn-info' ng-click='openModal(dataUsuario,'modal-2', 'lg');'><i class='fa-edit'></i></button>"
How can I do with this button using ng-click to show a modal ?. Previously I filled the table with ng-repeat, but I lost the page, looking for the datatable.
How could I do this, or how else can I do it and if it is not possible, thank you very much. thank you very much.