mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-5718] change ngOnInit to ngAfterViewInit in Login component docs in Customizing validation rules section (#7223)
This commit is contained in:
parent
336c3700f1
commit
eb95e84ea7
@ -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.');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user