File

src/app/components/sidenav-items/sidenav-items.component.ts

Metadata

selector pnx-sidenav-items
styleUrls sidenav-items.component.scss
templateUrl sidenav-items.component.html

Constructor

constructor(moduleService: ModuleService, _sidenavService: SideNavService, config: any)

Methods

setHome
setHome()
Returns: void

Properties

_sidenavService
_sidenavService: SideNavService
config
config: any
Public exportModule
exportModule: any
Public home_page
home_page: any
moduleService
moduleService: ModuleService
Public nav
nav: {}[]
Public version
version: any
import { Component, OnInit } from '@angular/core';
import { ConfigService } from '@geonature/services/config.service';
import { ModuleService } from '../../services/module.service';
import { SideNavService } from './sidenav-service';

@Component({
  selector: 'pnx-sidenav-items',
  templateUrl: './sidenav-items.component.html',
  styleUrls: ['./sidenav-items.component.scss'],
})
export class SidenavItemsComponent implements OnInit {
  public nav = [{}];
  public version = null;
  public home_page: any;
  public exportModule: any;

  constructor(
    public moduleService: ModuleService,
    public _sidenavService: SideNavService,
    public config: ConfigService
  ) {
    this.version = this.config.GEONATURE_VERSION;
  }

  ngOnInit() {
    this.home_page = this._sidenavService.getHomeItem();
  }

  setHome() {
    this.moduleService.currentModule$.next(null);
  }
}

results matching ""

    No results matching ""