Browse Source

Merge pull request #7045 from abpframework/docs/component-replacement

Update the Component-Replacement.md
pull/7047/head
Bunyamin Coskuner 5 years ago
committed by GitHub
parent
commit
149b3f69b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/en/UI/Angular/Component-Replacement.md

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

Loading…
Cancel
Save