Updates Jasmine dependencies across the workspace to v7, retaining Jasmine 6
in packages/zone.js for its internal tests.
To support Jasmine 7 without relying on zone.js/plugins/jasmine-patch (which
cannot patch Jasmine 7 due to frozen environment properties and internal API
changes), unit tests across packages have been migrated off fakeAsync and
waitForAsync to standard asynchronous APIs (whenStable, useAutoTick, timeout,
and jasmine.clock).
Standalone is the default, so the explicit `standalone: true` flag is
redundant. Remove the remaining occurrences from the integration apps,
benchmarks and the router testing harness examples.
The `ActivatedRoute` API docs embed this example, which imported `map`
from the legacy `rxjs/operators` entry point. Since RxJS 7.2 all
operators are exported from `rxjs`, which RxJS recommends and new Angular
projects use, so the docs now show the recommended import style.
The imports stay inside the `activated-route` docregion, so the embedded
snippet is otherwise unchanged.
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.
Exclude `**/*.spec.ts` files from the `srcs` glob of the `full_sources` target.
Previously, `module.spec.ts` was compiled as part of the application's main sources because the glob pattern only excluded `**/*_spec.ts` (E2E specs). Consequently, `module.spec.js` was generated and included in the runfiles of the E2E test target, causing the Protractor runner to load and execute it. This failed since the E2E testing runner does not have access to unit testing imports like `@angular/core/testing`.
This is to align the shape of the method with `createComponent`
BREAKING CHANGE:The second arguement of appRef.bootstrap does not accept `any` anymore. Make sure the element you pass is not nullable.
fixes#67946
it was only optional to avoid a breaking change in a minor
BREAKING CHANGE: The `currentSnapshot` parameter in `CanMatchFn` and the `canMatch` method of the `CanMatch` interface is now required. While this was already the behavior of the Router at runtime, existing class implementations of `CanMatch` must now include the third argument to satisfy the interface.
PR Close#67452
The default change detection strategy is now OnPush.
BREAKING CHANGE: Component with undefined `changeDetection` property are now `OnPush` by default. Specify `changeDetection: ChangeDetectionStrategy.Eager` to keep the previous behavior.
Updated examples to align with the latest Angular style:
- Removed `standalone: false` since it is unnecessary.
- Dropped module-based implementation in favor of standalone.
PR Close#64167
Removed `standalone: true` since it is now the default
and no longer necessary.
refactor(common): update ngComponentOutlet and ngTemplateOutlet examples and remove redundant standalone flag
Removed `standalone: true` since it is now the default
and no longer necessary.
PR Close#64155
Updated pipe examples to explicitly import the pipe for clarity and
correctness. Also removed `standalone: true` since it is now the default
and no longer necessary.
PR Close#64135
This updates tests and examples only to prepare for zoneless by default.
These changes were identified and made as part of #63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.
It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before #63382 is merged.
PR Close#63668