Pushing string to Array in Ionic
<p>Hi guys I'm trying to learn Angular to make Ionic apps and I'm following a tutorial on Angular,  the thing is that not all angular statements work for Ionic. Im trying to push a name and a city from input's to an array (don't need to save them. </p>

<p>These are my input fields: </p>

<pre><code>&lt;p&gt;What is your first name? &lt;/p&gt;
&lt;input type="text" ng-model="newCustomer.name"/&gt;
&lt;p&gt;What city do you live in?&lt;/p&gt;
&lt;input type="text" ng-model="newCustomer.city"/&gt;
&lt;button ng-click="addCustomer()"&gt;Become a customer&lt;/button&gt;
</code></pre>

<p>This is how all names and cities are displayed:</p>

<pre><code>&lt;ul&gt;
   &lt;li ng-repeat="cust in customers | filter: name"&gt; {{cust.name + " from " + cust.city}} &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>This is the controller: </p>

<pre><code>demoApp.controller('simpleController', function ($scope){
    $scope.customers =  [
        { name: 'jasper', city: 'Amsterdam' },
        { name:'Dave',city:'phoenix'} ,
        { name:'Gina', city:'Amsterdam' },
        { name: 'Philip', city:'Otterloo'}
        ];

    $scope.addCustomer = function() {
      $scope.customers.push(
          {
              name: $scope.newCustomer.name,
                city: $scope.newCustomer.city
        });
    };
});
</code></pre>

<p>I'm following a tutorial and I've searched on stack and google but really can't find what I am doing wrong, I hope someone can help me out. </p>

<p>P.S. I'm kind of new on stack so if I did something wrong (stack rules wise) please don't hesitate to point it out to me.</p>

<p><strong>EDIT</strong>: someone asked for full app.js code</p>

<pre><code>var demoApp = angular.module('demoApp',['ionic']);

demoApp.config(function($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise('/')

    $stateProvider.state('home', {
  url: '/home',
  views: {
    home: {
      templateUrl: 'home.html',
        controller: 'simpleController'
    }
  }
})

$stateProvider.state('help', {
  url: '/help',
  views: {
    help: {
      templateUrl: 'help.html',
        controller: 'simpleController'

    }
  }
})
});

demoApp.controller('simpleController', function ($scope){
    $scope.customers =  [
        { name: 'jasper', city: 'Amsterdam' },
        { name:'Dave',city:'phoenix'} ,
        { name:'Gina', city:'Amsterdam' },
        { name: 'Philip', city:'Otterloo'}
        ];

    $scope.addCustomer = function() {
      $scope.customers.push(
          {
            name: $scope.newCustomer.name,
            city: $scope.newCustomer.city
        });
    };
});
</code></pre>