Results for “od”
Small, practical examples. Search by task or narrow things down below.
Handle a result with a discriminated union
Separate success data from an error message.
discriminated union✓ Tested
Handle a template-driven form submission
Handle a template-driven form submission with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Handle a terminating error
Catch conversion failures and produce a clear fallback.
try catch✓ Tested
Handle an event emitted by a child
Handle an event emitted by a child with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Handle an expected command failure
Branch on a command’s exit code without aborting the script.
exit status✓ Tested
Handle an optional dependency
Handle an optional dependency with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Handle Escape to dismiss a panel
Handle Escape to dismiss a panel with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Handle malformed JSON input
Python: Catch JSONDecodeError without hiding unrelated programming errors.
Python✓ Tested
Handle the Enter key specifically
Handle the Enter key specifically with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Handle three possible outcomes
JavaScript: Check high, normal and low values with an ordered conditional chain.
JavaScript✓ Tested
Handle three possible outcomes
TypeScript: Check high, normal and low values with an ordered conditional chain.
TypeScript✓ Tested
Hide an element while keeping it mounted
Hide an element while keeping it mounted with a standalone Angular component and explicit browser behavior.
Angular✓ Tested