Illustrates custom validation, you have to select time between 12:00 and 13:59

@if (ctrl.valid) {
Great choice
} @if (ctrl.errors) {
@if (ctrl.errors['required']) {
Select some time during lunchtime
} @if (ctrl.errors['tooLate']) {
Oh no, it's way too late
} @if (ctrl.errors['tooEarly']) {
It's a bit too early
}
}

Selected time: {{ ctrl.value | json }}