-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(notifier): Fix circular dependency issues of injection tokens (#124)
- Loading branch information
1 parent
1bff46d
commit 139d43c
Showing
6 changed files
with
25 additions
and
21 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,19 @@ | ||
import { NotifierConfig, NotifierOptions } from './models/notifier-config.model'; | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
// tslint:disable variable-name | ||
|
||
/** | ||
* Injection Token for notifier options | ||
*/ | ||
export const NotifierOptionsToken: InjectionToken<NotifierOptions> | ||
= new InjectionToken<NotifierOptions>( '[angular-notifier] Notifier Options' ); | ||
|
||
/** | ||
* Injection Token for notifier configuration | ||
*/ | ||
export const NotifierConfigToken: InjectionToken<NotifierConfig> | ||
= new InjectionToken<NotifierConfig>( '[anuglar-notifier] Notifier Config' ); | ||
|
||
// tslint:enable variable-name | ||
|
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