angular/packages/examples/service-worker/push/main.ts
Shuaib Hasan Akib c7affdfbc9 refactor(common): update examples to align with Angular best practices
Updated examples to use the standalone component approach and the latest
2025-11-19 14:29:49 -08:00

24 lines
828 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 'zone.js';
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser';
import {AppComponent} from './service_worker_component';
import {ApplicationConfig, importProvidersFrom, provideZoneChangeDetection} from '@angular/core';
import {ServiceWorkerModule} from '@angular/service-worker';
const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection(),
provideProtractorTestingSupport(),
importProvidersFrom(ServiceWorkerModule.register('ngsw-worker.js')),
],
};
bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));