Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // asi se mandaria llamar un filtro para carreteras
- // que filtre por estado.id,
- $.ajax({
- url: "/filtros/carreteras", // Esta action estaria en el FiltrosController
- type: 'POST',
- dataType: 'json',
- contentType: 'application/json',
- data: JSON.stringify({
- filters: [
- { 'estado.id': '77' },
- { 'otraRelacionDeCarretera.id', 99 }
- ]
- }),
- success: function(data) {
- console.debug("OBTUVE LAS SIG CARRETERAS", data);
- }
- });
Add Comment
Please, Sign In to add comment