angular/packages/examples
AleksanderBodurri c1dee4cfe3 test(core): unit tests for the injector profiler and injector debugging APIs (#48639)
Creates unit tests for the following APIs

    - setInjectorProfiler
    - getInjectorProviders
    - getInjectorResolutionPath
    - getDependenciesFromInjectable

    Modifies existing tests in

    - packages/examples/core/di/ts/injector_spec.ts
    - packages/core/test/render3/jit/declare_injectable_spec.ts
    - packages/core/test/render3/jit/declare_factory_spec.ts

    because they setup framework injector context manually.

    Exports setInjectorProfilerContext in packages/core/src/core_private_export.ts in order for use
    in the the modified tests above.

PR Close #48639
2023-08-01 11:44:40 -07:00
..
common feat(common): add component input binding support for NgComponentOutlet (#51148) 2023-07-25 09:16:19 -07:00
core test(core): unit tests for the injector profiler and injector debugging APIs (#48639) 2023-08-01 11:44:40 -07:00
forms refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
http build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
platform-browser build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
router feat(router): helper functions to convert class guards to functional (#48709) 2023-02-27 11:52:47 -08:00
service-worker refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
test-utils build: remove remaining usages of deprecated ts_devserver (#48521) 2022-12-19 19:50:44 +00:00
testing build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
upgrade feat(core): remove entryComponents (#49484) 2023-03-23 10:38:03 -07:00
BUILD.bazel build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
index.html refactor: switch packages/examples to ESM-compatible http server (#48521) 2022-12-19 19:50:44 +00:00
README.md build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -08:00
tsconfig-e2e.json build: switch example e2e tests to bazel (#28402) 2019-01-28 19:21:09 -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)
yarn bazel run //packages/examples/common:devserver

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

Running the tests

yarn bazel test //packages/examples/...