The snippet library.
Small, practical examples. Search by task or narrow things down below.
Derive a value from an input signal
Derive a value from an input signal with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Emit a typed object from a child
Emit a typed object from a child with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Expose an input with a public alias
Expose an input with a public alias with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Normalize an input with a transform
Normalize an input with a transform with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Project content into named slots
Project content into named slots with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Render signal changes with OnPush
Render signal changes with OnPush with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Require an input value
Require an input value with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Scope a component’s styles
Scope a component’s styles with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Share two-way state through a model input
Share two-way state through a model input with a standalone Angular component and explicit browser behavior.
Angular✓ Tested