-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Vishali Sakar <[email protected]> Co-authored-by: Vishali Sakar <[email protected]> Co-authored-by: Vishali Sakar <[email protected]>
- Loading branch information
1 parent
93bd449
commit e429480
Showing
3 changed files
with
102 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BehaviorSubject } from 'rxjs' | ||
import { Injectable } from '@angular/core' | ||
|
||
@Injectable() | ||
export class LoaderService { | ||
changeLoad = new BehaviorSubject<boolean>(false) | ||
|
||
private doubleBack = new BehaviorSubject(false) | ||
currentState = this.doubleBack.asObservable() | ||
|
||
changeLoadState(state: boolean) { | ||
this.doubleBack.next(state) | ||
} | ||
|
||
} |