mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
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)
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/...