Browse Source

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

Update the Component-Replacement.md
pull/7047/head
Bunyamin Coskuner 6 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, ApplicationConfiguration,
AuthService, AuthService,
ConfigState, ConfigState,
SessionState, SessionStateService,
SetLanguage, SetLanguage,
} from '@abp/ng.core'; } from '@abp/ng.core';
import { Component, AfterViewInit } from '@angular/core'; import { Component, AfterViewInit } from '@angular/core';
@ -396,10 +396,10 @@ export class NavItemsComponent implements AfterViewInit {
} }
get selectedLangCulture(): string { 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() { ngAfterViewInit() {
fromEvent(window, 'resize') fromEvent(window, 'resize')

Loading…
Cancel
Save