To display a validation error message only when a form control is touched and invalid, you can use the expressions formControlName._____ and formControlName._____.
- dirty, pristine
- touched, pristine
- valid, dirty
- valid, invalid
To display a validation error message only when a form control is touched and invalid, you can use the expressions formControlName.touched and formControlName.pristine.
Loading...
Related Quiz
- Which feature in Angular allows you to create custom HTML elements that can be used outside Angular applications?
- In Angular testing, what is the purpose of the async and fakeAsync utilities?
- You are building a component that fetches data from an API. However, you want to ensure that the component only triggers the API call when it's actually visible to the user. Which lifecycle hook can help you achieve this?
- How can you handle conditional validation for controls within a Form Array in Angular?
- The _____ event is emitted when a navigation action starts.