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';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
export const AppRoutes: Routes = [
|
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({
|
@NgModule({
|
||||||
|
|
|
@ -4,7 +4,6 @@ import {AppComponent} from './app.component';
|
||||||
import {AppRoutingModule} from './app-routing.module';
|
import {AppRoutingModule} from './app-routing.module';
|
||||||
import {Router} from '@angular/router';
|
import {Router} from '@angular/router';
|
||||||
import {BrowserModule} from '@angular/platform-browser';
|
import {BrowserModule} from '@angular/platform-browser';
|
||||||
import {InteractiveMiningModule} from './interactivemining/interactive-mining.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -12,7 +11,6 @@ import {InteractiveMiningModule} from './interactivemining/interactive-mining.mo
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
InteractiveMiningModule,
|
|
||||||
AppRoutingModule
|
AppRoutingModule
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
|
|
|
@ -8,9 +8,9 @@ import {InteractiveMiningComponent} from './interactive-mining.component';
|
||||||
import {SaveProfileGuard, UploadContentGuard} from './save-profile-guard';
|
import {SaveProfileGuard, UploadContentGuard} from './save-profile-guard';
|
||||||
|
|
||||||
const interactiveMiningRoutes: Routes = [
|
const interactiveMiningRoutes: Routes = [
|
||||||
{path: 'mining', redirectTo: '/mining/manage-profiles', pathMatch: 'full'},
|
{path: '', redirectTo: '/mining/manage-profiles', pathMatch: 'full'},
|
||||||
{
|
{
|
||||||
path: 'mining',
|
path: '',
|
||||||
// component: InteractiveMiningComponent,
|
// component: InteractiveMiningComponent,
|
||||||
children: [
|
children: [
|
||||||
{ path: 'manage-profiles', component: ManageprofilesComponent },
|
{ path: 'manage-profiles', component: ManageprofilesComponent },
|
||||||
|
|
Loading…
Reference in New Issue