I am calling get method but the view is not updated. I tried alert()
and it shows data properly.
var app = angular.module('test', []);
app.controller('TestCtrl', function ($scope)
{
$.get( "people/allNumberOfuser", function( data )
{
$scope.testValue =data.message;
alert(data.message);
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.min.js"></script>
<div ng-app="test">
<p ng-controller="TestCtrl">
{{testValue}}
</p>
</div>
I am new in AngularJS. Thanks in advance.