Adding a test component and routing path in order to test there new components/ code

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@43805 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2016-09-23 13:27:15 +00:00
parent 7896693521
commit e11aca3c15
5 changed files with 24 additions and 9 deletions

View File

@ -10,7 +10,6 @@ import 'rxjs/Rx';
<main> <main>
<router-outlet></router-outlet> <router-outlet></router-outlet>
</main> </main>
</div>` </div>`
}) })
export class App { export class App {

View File

@ -1,9 +1,8 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
// import { routing } from '../app.routing';
import { RouterModule } from "@angular/router";
import { RouterModule } from "@angular/router";
import {NavigationBarComponent} from './navigationBar.component'; import {NavigationBarComponent} from './navigationBar.component';
@ -11,12 +10,11 @@ import {NavigationBarComponent} from './navigationBar.component';
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, FormsModule, CommonModule, FormsModule,
// routing,
RouterModule RouterModule
], ],
declarations: [ declarations: [
NavigationBarComponent NavigationBarComponent,
], ],
exports: [ exports: [

View File

@ -0,0 +1,12 @@
import {Component, ElementRef} from '@angular/core';
@Component({
selector: 'test',
template: `
`
})
export class TestComponent {
}

View File

@ -9,6 +9,8 @@ import {ProjectTitleFormatter} from './projectTitleFormatter.component';
import {PublicationTitleFormatter} from './publicationTitleFormatter.component'; import {PublicationTitleFormatter} from './publicationTitleFormatter.component';
import {PagingFormatter} from './pagingFormatter.component'; import {PagingFormatter} from './pagingFormatter.component';
import {AutocompleteComponent} from './autoComplete.component'; import {AutocompleteComponent} from './autoComplete.component';
import {AutocompleteCountriesComponent} from './autoCompleteCountries.component';
import {ShowDataProvidersComponent} from './showDataProviders.component'; import {ShowDataProvidersComponent} from './showDataProviders.component';
import {ExportCSVComponent} from './exportCSV.component.ts'; import {ExportCSVComponent} from './exportCSV.component.ts';
@ -27,7 +29,8 @@ import {ModalLoading} from './modal/loading.component';
PagingFormatter, PagingFormatter,
AutocompleteComponent, AutocompleteComponent,
ShowDataProvidersComponent, ShowDataProvidersComponent,
ExportCSVComponent ExportCSVComponent,
AutocompleteComponent, AutocompleteCountriesComponent
], ],
exports: [ exports: [
@ -38,7 +41,8 @@ import {ModalLoading} from './modal/loading.component';
AlertModal, ModalLoading, AlertModal, ModalLoading,
AutocompleteComponent, AutocompleteComponent,
ShowDataProvidersComponent, ShowDataProvidersComponent,
ExportCSVComponent ExportCSVComponent,
AutocompleteComponent, AutocompleteCountriesComponent
] ]
}) })

View File

@ -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
], ],