A Timer created in AngularJS