Angular directive for limited input (limited in number of octets in this case)