I need to send several parameters to a JSON controller!

-2
var appController = (function () {
    return {
             save: function (_item, _tipo) {
                       APP.rq.axios.put(APP.ctrl + '/proyeccion', _item)
             }
    }
}

What I want to know is how to pass the variable _type within the chain.

Projection is the call to httpput

item is my data that will be recorded.

I want to pass both variables

Thank you very much

    
asked by Luis De La Cruz 09.11.2017 в 18:56
source

1 answer

0
save: function (_item, _tipo) {
    APP.rq.axios.put(APP.ctrl + '/proyeccion?tipo=' + _tipo, _item)
}

This is the solution I was looking for

    
answered by 10.11.2017 в 19:06