changed empty component to homecomponent

This commit is contained in:
Nikolaos Laskaris 2017-11-16 16:27:40 +02:00
parent 48a7cb0606
commit 441489623c
6 changed files with 16 additions and 10 deletions

View File

@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageNotFoundComponent } from './not-found.component';
import { EmptyComponent } from './empty.component';
import { HomepageComponent } from './homepage/homepage.component';
import { DynamicFormComponent } from './form/dynamic-form.component';
import { AuthGuard } from './guards/auth.guard';
import { ProjectsComponent } from './projects/projects.component';
@ -22,7 +22,7 @@ const appRoutes: Routes = [
{ path: 'dmps', component: DmpComponent},
{ path: 'dmp', component: DmpDetailedComponent },
{ path: 'workspace', component: UserWorkspaceComponent},
{ path: 'welcome', component: EmptyComponent},
{ path: 'welcome', component: HomepageComponent},
{ path: '', redirectTo: '/login', pathMatch: 'full' },
{ path: '**', component: PageNotFoundComponent },
/*

View File

@ -22,7 +22,7 @@ import { DynamicFormGroupComponent } from './form/dynamic-form-group/dynamic-for
import { AppRoutingModule } from './app-routing.module';
import { AuthGuard } from './guards/auth.guard';
import { PageNotFoundComponent } from './not-found.component';
import { EmptyComponent } from './empty.component';
import { HomepageComponent } from './homepage/homepage.component';
import { TocComponent } from './form/tableOfContents/toc.component';
import { ConfirmationComponent } from './widgets/confirmation/confirmation.component';
@ -85,7 +85,7 @@ import { DmpDetailedComponent } from './viewers/dmp-detailed/dmp-detailed.compon
GooggleSignInComponent,
MainSignInComponent,
PageNotFoundComponent,
EmptyComponent,
HomepageComponent,
ModalComponent,
ProjectDetailComponent,
ProjectsComponent,

View File

@ -1,6 +0,0 @@
import { Component } from '@angular/core';
@Component({
template: ''
})
export class EmptyComponent {}

View File

@ -0,0 +1,3 @@
<h1>
Works
</h1>

View File

@ -0,0 +1,9 @@
import { Component } from '@angular/core';
@Component({
selector: 'homepage',
templateUrl: './homepage.component.html',
styleUrls: ['./homepage.component.css'],
providers: []
})
export class HomepageComponent {}