Browse Source

Merge pull request #24875 from abpframework/issue/add-theme-token

Angular - Adding the theme change token
pull/24876/head
erdem 1 month ago
committed by GitHub
parent
commit
2b7aa77514
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      npm/ng-packs/packages/theme-shared/src/lib/tokens/index.ts
  2. 6
      npm/ng-packs/packages/theme-shared/src/lib/tokens/theme-change.token.ts

1
npm/ng-packs/packages/theme-shared/src/lib/tokens/index.ts

@ -4,3 +4,4 @@ export * from './ngx-datatable-messages.token';
export * from './suppress-unsaved-changes-warning.token';
export * from './confirmation-icons.token';
export * from './logo.token';
export * from './theme-change.token';

6
npm/ng-packs/packages/theme-shared/src/lib/tokens/theme-change.token.ts

@ -0,0 +1,6 @@
import { InjectionToken } from '@angular/core';
import { Observable } from 'rxjs';
export const THEME_CHANGE_TOKEN = new InjectionToken<Observable<{ styleName: string }>>(
'THEME_CHANGE_TOKEN',
);
Loading…
Cancel
Save