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.'); }