Skip to content

Commit 443e908

Browse files
fix(overmind-angular): make service injectable
1 parent 019954d commit 443e908

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/node_modules/overmind-angular/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// import { Injectable } from "@angular/core"
1+
// @ts-ignore
2+
import { Injectable } from '@angular/core'
23
import { Overmind, EventType } from 'overmind'
34
import { BehaviorSubject, Observable } from 'rxjs'
45
import { map } from 'rxjs/operators'
@@ -32,6 +33,7 @@ export const Track = (Component) => {
3233
}
3334
}
3435

36+
@Injectable()
3537
export class Service<App extends Overmind<any>> {
3638
private tree: any
3739
private state$: Observable<any>

packages/node_modules/overmind-angular/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"declaration": true,
1313
"pretty": true,
1414
"sourceMap": true,
15-
"inlineSources": true
15+
"inlineSources": true,
16+
"experimentalDecorators": true
1617
},
1718
"exclude": ["node_modules", "dist", "es", "lib", "src/**/*.test.ts"]
1819
}

0 commit comments

Comments
 (0)