Adding a test component and routing path in order to test there new components/ code - complete previous commit r43805
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@43806 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
e11aca3c15
commit
b5d092b74c
|
@ -18,8 +18,10 @@ import { AdvancedSearchPublicationsComponent } from './searchPages/advancedSearc
|
||||||
import { DepositComponent } from './deposit/deposit.component';
|
import { DepositComponent } from './deposit/deposit.component';
|
||||||
import { DepositResultComponent } from './deposit/depositResult.component';
|
import { DepositResultComponent } from './deposit/depositResult.component';
|
||||||
import { ErrorPageComponent } from './error/errorPage.component';
|
import { ErrorPageComponent } from './error/errorPage.component';
|
||||||
|
import { TestComponent } from './test/test.component';
|
||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
|
|
||||||
{ path: '', component: HomeComponent, pathMatch: 'full' },
|
{ path: '', component: HomeComponent, pathMatch: 'full' },
|
||||||
{ path: 'claims', component: ClaimsAdminComponent },
|
{ path: 'claims', component: ClaimsAdminComponent },
|
||||||
{ path: 'home', component: HomeComponent },
|
{ path: 'home', component: HomeComponent },
|
||||||
|
@ -38,8 +40,11 @@ const appRoutes: Routes = [
|
||||||
{ path: 'advanced-search-publications', component: AdvancedSearchPublicationsComponent },
|
{ path: 'advanced-search-publications', component: AdvancedSearchPublicationsComponent },
|
||||||
{ path: 'deposit', component: DepositComponent},
|
{ path: 'deposit', component: DepositComponent},
|
||||||
{ path: 'deposit-results', component: DepositResultComponent},
|
{ path: 'deposit-results', component: DepositResultComponent},
|
||||||
|
{ path: 'test', component: TestComponent},
|
||||||
{ path: 'error', component: ErrorPageComponent},
|
{ path: 'error', component: ErrorPageComponent},
|
||||||
{ path: '**', component: ErrorPageComponent }
|
|
||||||
|
{ path: '**', component: ErrorPageComponent } // it has to be the last one - otherwise the next declaration are ignored
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ import {ServicesModule} from './app/services/services.module';
|
||||||
import {HomeComponent} from './app/home/home.component';
|
import {HomeComponent} from './app/home/home.component';
|
||||||
|
|
||||||
import {ErrorPageComponent} from './app/error/errorPage.component';
|
import {ErrorPageComponent} from './app/error/errorPage.component';
|
||||||
|
import {TestComponent} from './app/test/test.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
bootstrap: [ App ],
|
bootstrap: [ App ],
|
||||||
|
@ -37,7 +38,8 @@ import {ErrorPageComponent} from './app/error/errorPage.component';
|
||||||
],
|
],
|
||||||
declarations: [ App,
|
declarations: [ App,
|
||||||
HomeComponent,
|
HomeComponent,
|
||||||
ErrorPageComponent
|
ErrorPageComponent,
|
||||||
|
TestComponent
|
||||||
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
|
@ -72,6 +72,7 @@ app.get('/deposit', ngApp);
|
||||||
app.get('/deposit-result', ngApp);
|
app.get('/deposit-result', ngApp);
|
||||||
app.get('/error', ngApp);
|
app.get('/error', ngApp);
|
||||||
app.get('*', ngApp);
|
app.get('*', ngApp);
|
||||||
|
app.get('/test', ngApp);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue