/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/examples/service-worker/push/main.ts
24 строки
828 B
Shuaib Hasan Akib
refactor(common): update examples to align with Angular best practices
20 ноя 2025, 01:29
20 ноя 2025, 01:29
c7affdf
Код
Авторство
О чём код?
/** * @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));