angular apply
use apply to update model
by shengoo
HTML
<div ng-app ng-controller="Ctrl">
{{message}}
<br>
</div>
CSS
</style>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<style>
JavaScript
function Ctrl($scope) {
$scope.message = "Waiting 2000ms for update";
setTimeout(function () {
$scope.$apply(function () {
$scope.message = "Timeout called!";
});
}, 2000);
}