update the Component-Replacement doc

pull/7045/head
mehmet-erim 5 years ago
parent 91127beb68
commit 2db02bf78d

@ -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')

Loading…
Cancel
Save