FIND YOUR NEXT FEW LINES

The snippet library.

Small, practical examples. Search by task or narrow things down below.

9 snippets foundClear filters
AngularComponents & communication

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
AngularComponents & communication

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
AngularComponents & communication

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
AngularComponents & communication

Normalize an input with a transform

Normalize an input with a transform with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularComponents & communication

Project content into named slots

Project content into named slots with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularComponents & communication

Render signal changes with OnPush

Render signal changes with OnPush with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularComponents & communication

Require an input value

Require an input value with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularComponents & communication

Scope a component’s styles

Scope a component’s styles with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularComponents & communication

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