Skip to content
Snippets Groups Projects
menu-nav.component.ts 860 B
Newer Older
  • Learn to ignore specific revisions
  • Alex ORLUC's avatar
    Alex ORLUC committed
    import { Component, OnInit } from '@angular/core';
    
    import { Location } from '@angular/common';
    
    import { Router, ActivatedRoute } from '@angular/router';
    
    Alex ORLUC's avatar
    Alex ORLUC committed
    import { HttpClient } from '@angular/common/http';
    
    import { TranslateService } from '@ngx-translate/core';
    
    Alex ORLUC's avatar
    Alex ORLUC committed
    
    @Component({
        selector: 'menu-nav',
    
        templateUrl: 'menuNav.component.html',
    
    Alex ORLUC's avatar
    Alex ORLUC committed
    })
    export class MenuNavComponent implements OnInit {
    
    
    Alex ORLUC's avatar
    Alex ORLUC committed
    
    
            public translate: TranslateService,
    
            public http: HttpClient,
            private _router: Router,
            private activatedRoute: ActivatedRoute,
    
    Alex ORLUC's avatar
     
    Alex ORLUC committed
            this.router = _router;
    
    Alex ORLUC's avatar
    Alex ORLUC committed
        }
    
    
        ngOnInit(): void { }
    
    Alex ORLUC's avatar
    Alex ORLUC committed
    
        backClicked() {
    
            // this.router.navigate(['../'],{ relativeTo: this.activatedRoute });
    
    Alex ORLUC's avatar
    Alex ORLUC committed
        }
    }