ionic 5 angular form validation code example
Example: ionic form example
// in component.ts
this.myForm = formBuilder.group({
firstName: ['value'],
lastName: ['value', *validation function goes here*],
age: ['value', *validation function goes here*, *asynchronous validation function goes here*]
});
...
// in component.html