Angular services to measure element text width or height