I would like to call a function saveData($scope.data)
I understand there is an interval function in javascript but how can I make an initial interval of two minutes and then have that function repeatedly executed after that? I also need to save the new $scope.data
each time