From eb95e84ea778446d0393bf4119ba4927edfa1ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dunat?= <44978358+michu-dunat@users.noreply.github.com> Date: Tue, 24 Aug 2021 16:11:47 +0200 Subject: [PATCH] [AAE-5718] change ngOnInit to ngAfterViewInit in Login component docs in Customizing validation rules section (#7223) --- docs/core/components/login.component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/components/login.component.md b/docs/core/components/login.component.md index 66ddc9dec6..579a0e0ec0 100644 --- a/docs/core/components/login.component.md +++ b/docs/core/components/login.component.md @@ -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', 'maxlength', 'Username must not be longer than 11 characters.'); }