Files
angular/packages/examples
Kam 3a54e92a53 docs(core): restore the PipeTransform code examples
The PipeTransform usage notes still used AIO `<code-example>` tags,
which angular.dev does not render, so the page introduced two
`TruncatePipe` examples and then showed nothing.

Switch to `{@example}` and give both example files a named region so
the extractor can pick them up.

(cherry picked from commit 9ba5faa8a0)
2026-09-17 17:21:51 +00:00
..
…
2025-11-06 10:03:05 -08:00

API Examples

This folder contains small example apps that get in-lined into our API docs. Each example contains tests for application behavior (as opposed to testing Angular's behavior) just like an Angular application developer would write.

Running the examples

# Serving individual examples (e.g. common)
pnpm bazel run //packages/examples/common:devserver

# "core" examples
pnpm bazel run //packages/examples/core:devserver

Running the tests

pnpm bazel test //packages/examples/...