Adding Lightning wrapper component
This commit is contained in:
@@ -1,21 +1,32 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { LightningDashboardComponent } from './lightning-dashboard/lightning-dashboard.component';
|
||||
import { LightningWrapperComponent } from './lightning-wrapper/lightning-wrapper.component';
|
||||
import { NodeComponent } from './node/node.component';
|
||||
import { ChannelComponent } from './channel/channel.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: LightningDashboardComponent,
|
||||
},
|
||||
{
|
||||
path: 'node/:public_key',
|
||||
component: NodeComponent,
|
||||
},
|
||||
{
|
||||
path: 'channel/:short_id',
|
||||
component: ChannelComponent,
|
||||
component: LightningWrapperComponent,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: LightningDashboardComponent,
|
||||
},
|
||||
{
|
||||
path: 'node/:public_key',
|
||||
component: NodeComponent,
|
||||
},
|
||||
{
|
||||
path: 'channel/:short_id',
|
||||
component: ChannelComponent,
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
redirectTo: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
|
||||
Reference in New Issue
Block a user