mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 02:10:12 +01:00
feat: demo version additions
This commit is contained in:
parent
0eec54695f
commit
eee950248e
322 changed files with 23456 additions and 188 deletions
23
docs/app/@theme/services/dialog-state.service.ts
Normal file
23
docs/app/@theme/services/dialog-state.service.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright Akveo. All Rights Reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable, ReplaySubject } from 'rxjs';
|
||||
import { share } from 'rxjs/operators';
|
||||
|
||||
@Injectable()
|
||||
export class DialogStateService {
|
||||
|
||||
protected dialogState$ = new ReplaySubject();
|
||||
|
||||
changeDialogState(state: string) {
|
||||
this.dialogState$.next({state});
|
||||
}
|
||||
|
||||
onChangeDialogState(): Observable<any> {
|
||||
return this.dialogState$.pipe(share());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue