Skip to content

Commit

Permalink
feat(ng): add injectable to state for angular v9
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Feb 13, 2020
1 parent 5fdfaf8 commit 72f984c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
31 changes: 12 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@ionic-native/core": "5.19.1",
"@ionic-native/splash-screen": "5.19.1",
"@ionic-native/status-bar": "5.19.1",
"@ionic/angular": "4.11.8",
"@ionic/angular": "5.0.0",
"@ngxs/logger-plugin": "3.6.1",
"@ngxs/store": "3.6.1",
"core-js": "3.6.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
NOTIFICATION_ENGINE,
NotificationEngine
} from './symbols';
import { Inject } from '@angular/core';
import { Inject, Injectable } from '@angular/core';
import {
SuccessNotification,
HintNotification,
Expand All @@ -22,6 +22,7 @@ export interface NotificationStateModel {
@State<NotificationStateModel>({
name: 'notification'
})
@Injectable()
export class NotificationState {
constructor(
@Inject(NOTIFICATION_ENGINE) private _engine: NotificationEngine
Expand Down

0 comments on commit 72f984c

Please sign in to comment.