Skip to content

Commit 8f19b81

Browse files
davidelcheikhDavid Elcheikh
and
David Elcheikh
authored
Added: Allow standalone support (#14)
* allow standalone support * allow standalone support --------- Co-authored-by: David Elcheikh <[email protected]>
1 parent ade3fd3 commit 8f19b81

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ngrx-http-tracking/projects/ngrx-http-tracking/src/lib/+state/http-tracking.facade.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export interface HttpTrackingResult<T1, T2> {
1717
error?: Error;
1818
}
1919

20-
@Injectable()
20+
@Injectable({
21+
providedIn: 'root',
22+
})
2123
export class HttpTrackingFacade {
2224
constructor(private store: Store) {}
2325

ngrx-http-tracking/projects/ngrx-http-tracking/src/lib/http-tracking.module.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ import { NgModule } from '@angular/core';
33
import { EffectsModule } from '@ngrx/effects';
44
import { StoreModule } from '@ngrx/store';
55
import { HttpTrackingEffects } from './+state/http-tracking.effects';
6-
import { HttpTrackingFacade } from './+state/http-tracking.facade';
7-
import { httpTrackingReducer, HTTP_TRACKING_FEATURE_KEY } from './+state/http-tracking.reducer';
6+
import { HTTP_TRACKING_FEATURE_KEY, httpTrackingReducer } from './+state/http-tracking.reducer';
87

98
@NgModule({
109
imports: [
1110
CommonModule,
1211
StoreModule.forFeature(HTTP_TRACKING_FEATURE_KEY, httpTrackingReducer),
1312
EffectsModule.forFeature([HttpTrackingEffects]),
1413
],
15-
providers: [HttpTrackingFacade],
1614
})
1715
export class NgrxHttpTrackingModule {}

ngrx-http-tracking/projects/ngrx-http-tracking/src/public-api.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ export * from './lib/function/http-tracking-actions.factory';
44
export * from './lib/http-tracking.module';
55
export * from './lib/model/http-tracking-entity';
66
export * from './lib/function/tracking-success-pipe';
7+
export * from './lib/+state/http-tracking.effects';
8+
export * from './lib/+state/http-tracking.reducer';

0 commit comments

Comments
 (0)