Angular app for CAC desktop
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
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. }