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:
argiro.kokogiannaki 2016-09-23 13:30:00 +00:00
parent e11aca3c15
commit b5d092b74c
3 changed files with 10 additions and 2 deletions

View File

@ -18,8 +18,10 @@ import { AdvancedSearchPublicationsComponent } from './searchPages/advancedSearc
import { DepositComponent } from './deposit/deposit.component';
import { DepositResultComponent } from './deposit/depositResult.component';
import { ErrorPageComponent } from './error/errorPage.component';
import { TestComponent } from './test/test.component';
const appRoutes: Routes = [
{ path: '', component: HomeComponent, pathMatch: 'full' },
{ path: 'claims', component: ClaimsAdminComponent },
{ path: 'home', component: HomeComponent },
@ -38,8 +40,11 @@ const appRoutes: Routes = [
{ path: 'advanced-search-publications', component: AdvancedSearchPublicationsComponent },
{ path: 'deposit', component: DepositComponent},
{ path: 'deposit-results', component: DepositResultComponent},
{ path: 'test', component: TestComponent},
{ path: 'error', component: ErrorPageComponent},
{ path: '**', component: ErrorPageComponent }
{ path: '**', component: ErrorPageComponent } // it has to be the last one - otherwise the next declaration are ignored
];

View File

@ -21,6 +21,7 @@ import {ServicesModule} from './app/services/services.module';
import {HomeComponent} from './app/home/home.component';
import {ErrorPageComponent} from './app/error/errorPage.component';
import {TestComponent} from './app/test/test.component';
@NgModule({
bootstrap: [ App ],
@ -37,7 +38,8 @@ import {ErrorPageComponent} from './app/error/errorPage.component';
],
declarations: [ App,
HomeComponent,
ErrorPageComponent
ErrorPageComponent,
TestComponent
],

View File

@ -72,6 +72,7 @@ app.get('/deposit', ngApp);
app.get('/deposit-result', ngApp);
app.get('/error', ngApp);
app.get('*', ngApp);
app.get('/test', ngApp);
//