Closed wardloockx closed 5 years ago
Thanks for the issue! Could you please put together a sample app with a minimal amount of code to reproduce, using GitHub or this Stackblitz as a base: https://stackblitz.com/edit/ionic-v4-angular-tabs
Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Thank you for using Ionic!
Bug Report
Ionic version:
[x] 4.x
Current behavior: My registration form does not trigger error messages based on *ngIf and also doesn't change the invalid class to valid based on [class.invalid]=.
This only happens when I go to the root page of the app (/ => redirects to /user/login) and click on the registration form link.
When the form is loaded directly through /user/register in the browser, everything works perfectly.
Expected behavior: Showing error messages and validation logic should be the same regardless of how the form is loaded (directly or through a link click).
When I run the code and I am typing in the screenName input the test() function is triggered with a console.log, logging if the control is valid. And this logic does seem to work. So I think it's a UI related problem.
Related code:
user.module.ts
register.component.html
register.component.ts
login.component.ts
login.component.html
Other information:
Ionic info: