What is the difference between dirty and touched properties of a form control?
- Dirty indicates interaction, touched indicates modification.
- Dirty indicates it's required, touched indicates it's optional.
- Dirty indicates modification, touched indicates interaction.
- Dirty indicates optional, touched indicates required.
In Angular, the dirty property indicates that a form control has been modified, while the touched property indicates that a form control has been interacted with (e.g., focused or blurred).
Loading...
Related Quiz
- How can you access the data resolved by a Route Resolver within a component?
- In Angular, to manually control the emission of values in an Observable, you can use a _____.
- In RxJS, which operator can be used to catch and handle errors in an Observable stream?
- To submit a form in Angular, you typically bind the submit event to a method in your component class using _____ .
- Jasmine allows you to set up initial conditions for your tests in a block known as _____.