angular/modules/playground/src/http/main.ts
Andrew Scott c3576506b3 refactor(core): Update tests for zoneless by default (#63668)
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
2025-09-09 14:41:56 -07:00

23 lines
682 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {HttpClientModule} from '@angular/common/http';
import {NgModule, provideZoneChangeDetection} from '@angular/core';
import {BrowserModule, platformBrowser} from '@angular/platform-browser';
import {HttpCmp} from './app/http_comp';
@NgModule({
declarations: [HttpCmp],
bootstrap: [HttpCmp],
imports: [BrowserModule, HttpClientModule],
providers: [provideZoneChangeDetection()],
})
export class ExampleModule {}
platformBrowser().bootstrapModule(ExampleModule);