Input changes under the ion-content tag $scope.$watch cannot be heard
<ion-view>
<ion-content>
<input type="text" ng-model='myNumber' />
{{myNumber}}
</ion-content>
</ion-view>
This is how it works
<ion-view>
<input type="text" ng-model='myNumber' />
{{myNumber}}
</ion-view>
Excuse me, what is the reason for this?
阿神2017-05-15 16:54:19
script
$scope.payload = {
myNumber: ''
}
<ion-view>
<ion-content>
<input type="text" ng-model='payload.myNumber' />
{{payload.myNumber}}
</ion-content>
</ion-view>