I have built some custom directives for inputs. I want to use them and show an error message if the entered value isn't valid. Consequently every ng-message is shown on the condition "form.input.$dirty". I have built some custom directives for inputs.