Join GitHub today
Question/Issue about uri parameters binding #148
Well i have a little issue or question that i i'd love to resolve, im trying to send a few parameters, sending it with the uri binding from a view model to another new viewmodel, always im getting "undefined" on this observables without matters if the new view model observables has the same parameter name..
For example :
this is my binding where i set my parameters to wait :
and this is my another binding wher i set the observables to send and to bind my view model parameters :
then when i click my link and send it my parameters, my uri string is this :
On my newview model init function, Its output is :
console.log(self.origenTerminal()); // Undefined ...
then i'd love to know how i could bind those parameters with the values from the querystring, I thought that automatic pagerjs would do it but maybe i got confuse.
At the moment im retrieving my parameter without a custom functon that it takes the URI string and get the parameters for to bind them with my view model observables.
Then my question is : how can i retrieve my parameters from my new view model ? There's one way to do it ? or just i have to write a custom function for to decode the uri string ?
thanx you for your time and i hope somebody can explain me this.