Give this method a try
<div class="col-sm-6 form-group">
<label for="text">Text</label>
<input class="form-control input-lg" type="text" id="text" required name="text" ng-model="user.text" **ng-change="OnChange()"** placeholder="Enter your text">
</select>
</div>
<div class="col-sm-6 form-group">
<label for="email">Email Address</label>
<input class="form-control input-lg" type="email" id="email" required name="email" ng-model="user.email" **ng-change="OnChange()"** placeholder="Enter your email">
</div>
Code for JavaScript side
$Scope.OnChange=function(){
$scope.updateStatus=false;
$scope.$apply();
}
Add ng-change="OnChange()"
to all fields
You can also use the alert tag below. Optionally, you may remove unnecessary alerts.
<div ng-controller="AlertDemoCtrl">
<alert ng-repeat="alert in alerts" type="alert.type" close="closeAlert($index)">{{alert.msg}}</alert>
<button class='btn btn-default' ng-click="addAlert()">Add Alert</button>
</div>
JavaScript code
function AlertDemoCtrl($scope) {
$scope.alerts = [
{ type: 'danger', msg: 'Oh snap! Change a few things up and try submitting again.' },
{ type: 'success', msg: 'Well done! You successfully read this important alert message.' }
];
$scope.addAlert = function() {
$scope.alerts.push({msg: "Another alert!"});
};
$scope.closeAlert = function(index) {
$scope.alerts.splice(index, 1);
};
}
Live Demo: http://plnkr.co/edit/?p=preview