diff --git a/docs/en/UI/Angular/Component-Replacement.md b/docs/en/UI/Angular/Component-Replacement.md index 6df847d6d0..54a1869c0e 100644 --- a/docs/en/UI/Angular/Component-Replacement.md +++ b/docs/en/UI/Angular/Component-Replacement.md @@ -350,7 +350,7 @@ import { ApplicationConfiguration, AuthService, ConfigState, - SessionState, + SessionStateService, SetLanguage, } from '@abp/ng.core'; import { Component, AfterViewInit } from '@angular/core'; @@ -396,10 +396,10 @@ export class NavItemsComponent implements AfterViewInit { } get selectedLangCulture(): string { - return this.store.selectSnapshot(SessionState.getLanguage); + return this.sessionState.getLanguage(); } - constructor(private store: Store, private authService: AuthService) {} + constructor(private store: Store, private authService: AuthService, private sessionState: SessionStateService) {} ngAfterViewInit() { fromEvent(window, 'resize')