Angular app for CAC desktop
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

33 lignes
915 B

  1. import { Component, OnInit } from '@angular/core';
  2. import { NavigationEnd, Router } from '@angular/router';
  3. import { PartnerProfileService } from '../services/partner-profile.service';
  4. @Component({
  5. selector: 'app-dashboard',
  6. templateUrl: './dashboard.component.html',
  7. styleUrls: ['./dashboard.component.scss']
  8. })
  9. export class DashboardComponent implements OnInit {
  10. currentURL: string = '';
  11. constructor(
  12. private router: Router,
  13. private partnerProfileService: PartnerProfileService
  14. ) { }
  15. ngOnInit(): void {
  16. this.currentURL = this.router.url;
  17. this.router.events.subscribe((val) => {
  18. // see also
  19. if (val instanceof NavigationEnd) {
  20. this.currentURL = val.url;
  21. }
  22. });
  23. // this.partnerProfileService.getPartnersData().then(data => {
  24. // console.log(data);
  25. // })
  26. }
  27. }