SHARE
TWEET

Untitled

a guest Oct 21st, 2016 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tabs.component
  2. ---------------
  3. import { Component, OnInit }        from '@angular/core';
  4. import { Router, ActivatedRoute, RouterLink } from '@angular/router';
  5.  
  6. @Component({
  7.     selector: 'edge-tabs',
  8.     templateUrl: 'tabs.component.html',
  9.    
  10. })
  11. export class TabsComponent {
  12.  
  13.     constructor(private router:Router, private route:ActivatedRoute) {}
  14.    
  15.     ngOnInit(): void { }
  16. }
  17.  
  18.  
  19. tab.component.html
  20. -------------------
  21. <a [routerLink]="['overview']">Overview</a>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top