I have the following element
<div class="list list-inset">
  <label class="item item-input">
    <i class="icon ion-search  placeholder-icon"></i>
    <input type="text" ng-model="searchTerm" >
  </label>
</div>
The element searchTerm can be written directly in the input field, or it can be added from the controller
<a class="item item-icon-right search-history ng-binding" ng-repeat="item in history" ng-click="insertSearchValue(item)">
        a search term
      </a>
in Controller :
$scope.insertSearchValue = function(historyItem){
      $scope.searchTerm= historyItem.searchTerm;
}
The click on insertSearchValue works only at first, if i write something in the input field and remove it, the click doesn't change the value anymore.
Even though the value of $scope.searchTerm is actually changed.
I'm assuming this is something related to the 2 way binding of Angular, but i tried everything related : ( $apply, ngValue,$setViewValue...) still same issue.
Thanks for any hint.