diff --git a/apps/demo/src/app/app.browser.module.ts b/apps/demo/src/app/app.browser.module.ts index 021899e64..56a807b29 100644 --- a/apps/demo/src/app/app.browser.module.ts +++ b/apps/demo/src/app/app.browser.module.ts @@ -2,8 +2,9 @@ import {LocationStrategy, PathLocationStrategy} from '@angular/common'; import {NgModule, SecurityContext} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; -import {ServiceWorkerModule} from '@angular/service-worker'; +import {ServiceWorkerModule, SwPush} from '@angular/service-worker'; import {POSITION_OPTIONS} from '@ng-web-apis/geolocation'; +import {provideSwPush} from '@ng-web-apis/notification'; import {TuiLinkModule, TuiRootModule, TuiSvgModule} from '@taiga-ui/core'; import {HIGHLIGHT_OPTIONS, HighlightModule} from 'ngx-highlightjs'; import {MarkdownModule} from 'ngx-markdown'; @@ -35,6 +36,7 @@ import {AppRoutingModule} from './app.routes'; ], declarations: [AppComponent], providers: [ + provideSwPush(SwPush), { provide: HIGHLIGHT_OPTIONS, useValue: {fullLibraryLoader: async () => import(`highlight.js`)}, diff --git a/apps/demo/src/app/pages/notification/examples/01-getting-permission/index.ts b/apps/demo/src/app/pages/notification/examples/01-getting-permission/index.ts index 6195be330..726663e44 100644 --- a/apps/demo/src/app/pages/notification/examples/01-getting-permission/index.ts +++ b/apps/demo/src/app/pages/notification/examples/01-getting-permission/index.ts @@ -2,12 +2,13 @@ import {CommonModule} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {NotificationService} from '@ng-web-apis/notification'; import {PermissionsService} from '@ng-web-apis/permissions'; +import {TuiButtonModule} from '@taiga-ui/core'; import {TuiBadgeModule} from '@taiga-ui/kit'; @Component({ standalone: true, selector: 'notification-page-example-1', - imports: [CommonModule, TuiBadgeModule], + imports: [CommonModule, TuiBadgeModule, TuiButtonModule], templateUrl: './index.html', changeDetection: ChangeDetectionStrategy.OnPush, }) diff --git a/apps/demo/src/app/pages/notification/examples/02-create-notification/index.ts b/apps/demo/src/app/pages/notification/examples/02-create-notification/index.ts index 116c93dca..1f79d06c9 100644 --- a/apps/demo/src/app/pages/notification/examples/02-create-notification/index.ts +++ b/apps/demo/src/app/pages/notification/examples/02-create-notification/index.ts @@ -1,13 +1,14 @@ -import {CommonModule} from '@angular/common'; +import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {NotificationService} from '@ng-web-apis/notification'; import {isDenied, isGranted, PermissionsService} from '@ng-web-apis/permissions'; +import {TuiButtonModule} from '@taiga-ui/core'; import {filter, map, switchMap} from 'rxjs/operators'; @Component({ standalone: true, selector: 'notification-page-example-2', - imports: [CommonModule], + imports: [AsyncPipe, TuiButtonModule], templateUrl: './index.html', changeDetection: ChangeDetectionStrategy.OnPush, }) diff --git a/apps/demo/src/app/pages/notification/examples/03-close-notification/index.html b/apps/demo/src/app/pages/notification/examples/03-close-notification/index.html index e46c535c9..e993760a3 100644 --- a/apps/demo/src/app/pages/notification/examples/03-close-notification/index.html +++ b/apps/demo/src/app/pages/notification/examples/03-close-notification/index.html @@ -1,6 +1,7 @@