I'm calling the function from laravel blade template but it is sending multiple requests that's make the browser unresponsive Here is my code
**Laravel View**
<div ng-controller="HotelsListController as listCntrl">
<section class="section section-sec top-hotels hotels-sec">
<div class="container">
{{ listCntrl.hotelsRequests() }}
</div>
</section>
</div>
**Angular JS **
(function(){
angular
.module('app')
.controller('HotelsListController',hotelsListController);
hotelsListController.$inject = ['$http'];
function hotelsListController($http){
var vm = this;
vm.hotelsRequests = getHotelData;
function getHotelData(){
$http.get('/hotels/getHotelsRequest').then(function(response){
console.log(response);
});
}
}
})();