import { Directive , TemplateRef } from '@angular/core' ; /**
 * Directive allowing to define a fallback template for an error of a type that is not handled by any validation error directive.
 * It's used inside the body of the validation errors component, or inside the body of the default validation errors directive.
 * See the documentation of these two for example usages.
 *
 * This is useful to handle forgotten errors instead of displaying no error at all, or to handle all or several error types in the same way,
 * for example by relying on the error key to choose an internationalized message.
 */ @ Directive ( { selector : 'ng-template[valFallback]' } ) export class ValidationFallbackDirective { constructor ( public templateRef ) { } }