how to use interval service in angularjs