Determines whether this validator should be active or not based on an input.
Base class implementation checks whether an input is defined (if the value is different from
undefined). Validator classes that extend this base class can override this
function with the logic specific to a particular validator directive.
Tracks changes to the pattern bound to this directive.