title: Angular time validation
body: <p>In the following sample of code I am creating an input to take the time that for ex. a meeting is over.</p>
  
  <pre><code>           &lt;input ui-timepicker
                                     name="EventTimePickerTo"
                                     id="EventTimePickerTo"
                                     class="form-control"
                                     autocomplete="off"
                                     attachlevel="-1"
                                     placeholder="@WebResources.PlaceholderEndTime"
                                     ng-model="EventDetails.DateTimeTo"
                                     time-pattern="@ValidatorRegex.ValidTimeOrEmpty"
                                     ng-disabled="EventDetails.Permissions.TimePickerDisabled"
                                     ng-change="SaveEventDetails()"
                                     ng-blur="SaveEventDetails()" /&gt;
  </code></pre>
  
  <p>What I want is to validate that the input should have a max time to 14:00 and print an error message in case of time>14:00.
  Unfortunatelly ng-max doesn't work..
  Any help is welcome!</p>