draw a canvas  clock by angular directive