1. Change routing to be compatible with Admin Portal of OpenAire.
This commit is contained in:
parent
b4f802fb9b
commit
dc977a3473
Binary file not shown.
|
@ -2,7 +2,8 @@ import { NgModule } from '@angular/core';
|
|||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
export const AppRoutes: Routes = [
|
||||
{ path: '', redirectTo: '/mining/manage-profiles?communityId=Egi', pathMatch: 'full' }
|
||||
{ path: '', redirectTo: '/mining/manage-profiles?communityId=Egi', pathMatch: 'full' },
|
||||
{ path: 'mining', loadChildren: './interactivemining/interactive-mining.module#InteractiveMiningModule'}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
@ -4,7 +4,6 @@ import {AppComponent} from './app.component';
|
|||
import {AppRoutingModule} from './app-routing.module';
|
||||
import {Router} from '@angular/router';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {InteractiveMiningModule} from './interactivemining/interactive-mining.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
@ -12,7 +11,6 @@ import {InteractiveMiningModule} from './interactivemining/interactive-mining.mo
|
|||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
InteractiveMiningModule,
|
||||
AppRoutingModule
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
|
|
|
@ -8,9 +8,9 @@ import {InteractiveMiningComponent} from './interactive-mining.component';
|
|||
import {SaveProfileGuard, UploadContentGuard} from './save-profile-guard';
|
||||
|
||||
const interactiveMiningRoutes: Routes = [
|
||||
{path: 'mining', redirectTo: '/mining/manage-profiles', pathMatch: 'full'},
|
||||
{path: '', redirectTo: '/mining/manage-profiles', pathMatch: 'full'},
|
||||
{
|
||||
path: 'mining',
|
||||
path: '',
|
||||
// component: InteractiveMiningComponent,
|
||||
children: [
|
||||
{ path: 'manage-profiles', component: ManageprofilesComponent },
|
||||
|
|
Loading…
Reference in New Issue