breadcrubs.ts 745 Bytes
Newer Older
Open Source Developer's avatar
trans  
Open Source Developer committed
1 2 3
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Injectable } from "@angular/core";
import { AppSettings } from '../../app.settings';
Open Source Developer's avatar
trans  
Open Source Developer committed
4
import { Router } from '@angular/router';
Open Source Developer's avatar
trans  
Open Source Developer committed
5 6 7 8


@Component({
    selector: 'breadcrubs',
Open Source Developer's avatar
trans  
Open Source Developer committed
9 10
    template: ` <div class="col-sm-12"><p class="crumb" [hidden]="currentUrl != '/epal-class-select'">Αρχική σελίδα!!!!!!!!</p></div>
    			<div class="col-sm-12"><p class="crumb" [hidden]="currentUrl != '/sector-fields-select'">Αρχική σελίδα</p></div>
Open Source Developer's avatar
trans  
Open Source Developer committed
11 12 13 14 15
      
  `
})

@Injectable() export default class Breadcrubs implements OnInit {
Open Source Developer's avatar
trans  
Open Source Developer committed
16
constructor(private _router:Router) {}
Open Source Developer's avatar
trans  
Open Source Developer committed
17
   ngOnInit() {
Open Source Developer's avatar
trans  
Open Source Developer committed
18 19 20

   			let currentUrl = this._router.url;
   			console.log(currentUrl,"lala");
Open Source Developer's avatar
trans  
Open Source Developer committed
21 22 23
 			}
 
}