timer is now an angular directive