How to make a thread with angular js
<p>I have a spring mvc application with html and angular in the client side, I have a method in my controller angular that i want to run every 5 seconds, how to do that with angular ?
thank u for your help
this is my code</p>

<pre><code>$scope.inspectionEnCoursDinspection=[];          
$http.get("http://localhost:8080/projet/getInspectionEnCoursDinspection").success(function (data, status, headers, config) {

     $scope.inspectionEnCoursDinspection1=data;
}),
</code></pre>