File

src/app/layout/sidebar/sidebar.component.ts

Description

Navigation component

Implements

DoCheck

Example

Metadata

selector app-sidebar
templateUrl ./sidebar.component.html

Index

Properties
Methods

Constructor

constructor(authService: AuthService)

Contructor

Parameters :
Name Type Optional Description
authService AuthService

Methods

ngDoCheck
ngDoCheck()

Do check

Returns : void

Properties

securityInfo
securityInfo: SecurityInfo
Type : SecurityInfo

Security Info

import { Component, DoCheck } from '@angular/core';
import { SecurityInfo } from '../../shared/model/about/security-info.model';
import { AuthService } from '../../auth/auth.service';

/**
 * Navigation component
 *
 * @author Gunnar Hillert
 * @author Damien Vitrac
 */
@Component({
  selector: 'app-sidebar',
  templateUrl: './sidebar.component.html',
})
export class SidebarComponent implements DoCheck {

  /**
   * Security Info
   */
  securityInfo: SecurityInfo;

  /**
   * Contructor
   * @param {AuthService} authService
   */
  constructor(private authService: AuthService) {
    this.securityInfo = authService.securityInfo;

  }

  /**
   * Do check
   */
  ngDoCheck() {
    this.securityInfo = this.authService.securityInfo;
  }

}
<div id="sidebar">
  <div class="sidebar-header">
    <a routerLink="/" class="logo-link">
      <span class="icon">
        <app-logo></app-logo>
      </span>
      <span class="sidebar-title">Data Flow</span>
    </a>
  </div>
  <app-navigation></app-navigation>
</div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""