Issue with model binding when using ionic

i have the following code: and the data binding is not working when using ionic. if you copy and paste this code in plunker you will see that on every key entry it will clear the input. This is not the case when using ionic. Has anyone had a similar issue?

<!doctype html>
<html lang="en">

  <meta charset="UTF-8">
  <title>Example - example-ngChange-directive-production</title>

  <script src="//"></script>


<body ng-app="">
    function Controller($scope) {
      tester = ["d", "d", "dfsd"];
      $ = "me";
      $scope.testing = tester;
      $scope.counter = 0;
      $scope.change = function() {
        $scope.confirmed = '';
  <div ng-controller="Controller">
    <input type="text" ng-model="confirmed.stuff" ng-change="change()" id="ng-change-example1" />
    <label for="ng-change-example2">Confirmed</label>
    <br />
    <tt>debug = {{confirmed}}</tt>
    <tt>counter = {{counter}}</tt>
    <div ng-repeat="test in testing track by $index">{{test}}</div>



Ionic uses child scopes and isolate scopes quite frequently. Because of this, you will often not get 2 way binding on primities. You need to be using “dot notation”.

Thank you. Such a simple mistake on my part. WORKED!!!

I have opened up a separate topic for this, but it seems the solution above works only if the input type is text. It doesn’t seem to work when the type is email?