$scope variables not bind when ionic module included

This example shows a login form with email field being set as a string upfront. When click Login, it will do console.log of that $scope.email.

app.controller('MainCtrl', function($scope) {
  $scope.email = 'test@test.com';
  $scope.login = function() {

However, if I change the email field manually in the email input and click login(), it doesn’t update and print the new value.

If I removed ionic out from this

var app = angular.module('plunker', ['ionic']);

The data binding works like a charm. So did ionic module did something to angular binding?

Never mind. I used dot notation and replaced with user.email and user.password or something like that with user object. It works.

Nice if this is documented somewhere.

Thanks hawkphil, it worked for me. You save my life :slight_smile: