About TextInput

<TextInput Value="{titleInput}" ValueChanged="{search}">
var titleInput = Observable("");

I did something like this to search in real time according to the change of titleInput. Whenever I typed sth to titleinput, the search function used the pervious value of titleInput for searching instead of the latest value.

For example, When I type “apple”, it searchs and shows the results of “appl”.

Could I get some hints to solve it? Thanks!

Oh. I found the solution.

function search(args)
{
// Search by using args.value 
}

It works now!