We would like to update the value which be marked by red rectangle in the following screenshot:
But as I click search button again, it show correct value.
You can use Promises in AngularJS. The most powerful features of promises is the ability to chain them together. This allows the data to flow through the chain and be manipulated and mutated at each step.