I have a question, I hope and you can help me.
I have a jquery
function that I am using in angular , it is to generate datatable ... the point is that inside the function I can not use router.navigate[enlace];
$('#example tbody').on( 'click', '.btn-detalle', function fun () {
var data = tabla.row( $(this).parents('tr') ).data();
var id = data[0];
localStorage.setItem('actionId',id);
this.router.navigate(['inicio/editUser']);
});
This is the function that I would like to use; I do not use window.location.href(enlace)
because it loses the reactive load.
I hope and you can guide me, greetings !!!!