var myapp = angular.module("myapp", []); myapp.controller("MyController", function($scope, $interval){ $interval(callAtInterval, 5000); }); function callAtInterval() { console.log("Interval occurred"); }