SHARE
TWEET

Untitled

a guest Oct 21st, 2016 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. connections.component.ts
  2. --------------
  3. import { NgModule }                             from '@angular/core';
  4.  
  5. import { ConnectionsComponent }                 from './connections.component';
  6. import { ConnectionsRoutingModule }             from './connections-routing.module';
  7. import { SharedModule }                         from '../shared/shared.module';
  8.  
  9. import { ConnectionsOverviewComponent }         from './connections-overview.component';
  10. import { ConnectionsWiFiComponent }             from './connections-wifi.component';
  11.  
  12. @NgModule({
  13.     imports: [
  14.         ConnectionsRoutingModule,
  15.         SharedModule
  16.     ],
  17.     declarations: [
  18.         ConnectionsComponent,
  19.         ConnectionsOverviewComponent,
  20.         ConnectionsWiFiComponent
  21.     ]
  22. })
  23. export class ConnectionsModule {
  24.  
  25. }
  26.  
  27.  
  28. connections.component.html
  29. ------------------
  30. <edge-tabs> --- THIS IS NOT WORKING
  31. </edge-tabs>
  32. <nav>
  33.     <a [routerLink]="['overview']">Overview</a>      ---- THIS WORKS
  34.     <a [routerLink]="['wifi']">Technical Specs</a>
  35. </nav>
  36.  
  37. tabs.component.ts
  38. ----------------
  39. import { Component, OnInit }        from '@angular/core';
  40. import { Router, ActivatedRoute, RouterLink } from '@angular/router';
  41.  
  42. @Component({
  43.     selector: 'edge-tabs',
  44.     templateUrl: 'tabs.component.html',
  45.    
  46. })
  47. export class TabsComponent {
  48.  
  49.     constructor(private router:Router, private route:ActivatedRoute) {}
  50.    
  51.     ngOnInit(): void { }
  52. }
  53.  
  54.  
  55. tabs.component.html
  56. --------------------
  57. <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