import { Component , OnInit , Input } from '@angular/core' ; import { loginConfig } from 'config/global-config' ; import { Router } from '@angular/router' ; import { Session } from 'app/base/shared/model/session' ; import { SessionService } from 'app/base/shared/session.service' ; @ Component ( { selector : 'app-head' , templateUrl : './head.component.html' , styleUrls : [ './head.component.css' ] } ) export class HeadComponent implements OnInit { @ Input ( ) showMenu = false ; @ Input ( ) title : string ; session : Session ; constructor ( private router , private sessionService ) { this . title = loginConfig . form_title ; this . session = sessionService . getSession ( ) ; } ngOnInit ( ) { } public goPage ( path ) { this . router . navigateByUrl ( '/frame' + path ) ; } }