diff --git a/npm/ng-packs/packages/core/src/lib/services/replaceable-components.service.ts b/npm/ng-packs/packages/core/src/lib/services/replaceable-components.service.ts index 3f2b2cd17c..486f1bcd44 100644 --- a/npm/ng-packs/packages/core/src/lib/services/replaceable-components.service.ts +++ b/npm/ng-packs/packages/core/src/lib/services/replaceable-components.service.ts @@ -8,22 +8,22 @@ import { InternalStore } from '../utils/internal-store-utils'; @Injectable({ providedIn: 'root' }) export class ReplaceableComponentsService { - private state: InternalStore; + private store: InternalStore; get replaceableComponents$(): Observable { - return this.state.sliceState(state => state); + return this.store.sliceState(state => state); } get replaceableComponents(): ReplaceableComponents.ReplaceableComponent[] { - return this.state.state; + return this.store.state; } get onUpdate$(): Observable { - return this.state.sliceUpdate(state => state); + return this.store.sliceUpdate(state => state); } constructor(private ngZone: NgZone, private router: Router) { - this.state = new InternalStore([]); + this.store = new InternalStore([]); } // TODO: Create a shared service for route reload and more @@ -43,7 +43,7 @@ export class ReplaceableComponentsService { } add(replaceableComponent: ReplaceableComponents.ReplaceableComponent, reload?: boolean): void { - let replaceableComponents = this.state.state; + let replaceableComponents = this.store.state; const index = replaceableComponents.findIndex( component => component.key === replaceableComponent.key, @@ -55,7 +55,7 @@ export class ReplaceableComponentsService { replaceableComponents = [...replaceableComponents, replaceableComponent]; } - this.state.patch(replaceableComponents); + this.store.patch(replaceableComponents); if (reload) this.reloadRoute(); }