Model not getting updated when textbox value changes

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

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

1 Like

Thanks for the reply

CSJakharia