[AAE-5718] change ngOnInit to ngAfterViewInit in Login component docs in Customizing validation rules section (#7223)

This commit is contained in:
Michał Dunat
2021-08-24 16:11:47 +02:00
committed by GitHub
parent 336c3700f1
commit eb95e84ea7

View File

@@ -178,7 +178,7 @@ export class MyCustomLogin {
}; };
} }
ngOnInit() { ngAfterViewInit() {
this.alfrescoLogin.addCustomValidationError('username', 'minlength', 'Username must be at least 8 characters.'); this.alfrescoLogin.addCustomValidationError('username', 'minlength', 'Username must be at least 8 characters.');
this.alfrescoLogin.addCustomValidationError('username', 'maxlength', 'Username must not be longer than 11 characters.'); this.alfrescoLogin.addCustomValidationError('username', 'maxlength', 'Username must not be longer than 11 characters.');
} }