mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
120555a626
This commit applies the changes similar to the ones performed for the `inject()` function in https://github.com/angular/angular/pull/46649/commits/df246bb2358794e3aad53870f1554d84bbe390b2. The `TestBed.inject` function is updated to use previously added object-based API for options: now the flags argument supports passing an object which configures injection flags. DEPRECATED: The bit field signature of `TestBed.inject()` has been deprecated, in favor of the new options object. PR Close #46761
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/...