Browse Source

update the Component-Replacement doc

pull/7045/head
mehmet-erim 5 years ago
parent
commit
2db02bf78d
  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