Model not getting updated when textbox value changes


#1

Model not getting updated when textbox value changes.

When you change the textbox value from “Search Vendors1” to “Search1” the alert on Click of “Search” button should be equal to the textbox value but instead it still shows initial value “Search Vendors1”.

The $scope.searchVendors does not change on change of textbox value

Thanks in advance

CSJakharia


#2

some ionic-components have own scopes… so you have to put your models on an object and initialize them first.


#3

Thanks for the reply

CSJakharia