import { ValidationControllerFactory , Validator , ValidationController } from 'aurelia-validation' ; import { Container } from 'aurelia-framework' ; import { MdcValidationRenderer } from './mdc-validation-renderer' ; export class MdcValidationControllerFactory extends ValidationControllerFactory { static 'protocol:aurelia:resolver' = true ; static get ( container ) { return new MdcValidationControllerFactory ( container ) ; } createForCurrentScope ( validator ? ) { const controller = super . createForCurrentScope ( validator ) ; controller . addRenderer ( new MdcValidationRenderer ( ) ) ; return controller ; } }