Angular directive to select contents of text input when clicked.