diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts index be8d688d6..af24b0197 100644 --- a/dmp-frontend/src/app/app-routing.module.ts +++ b/dmp-frontend/src/app/app-routing.module.ts @@ -4,10 +4,12 @@ import { PageNotFoundComponent } from './not-found.component'; import { DynamicFormComponent } from './form/dynamic-form.component'; import { LoginComponent } from './login/login-page'; import { AuthGuard } from './guards/auth.guard'; +import { ProjectsComponent } from './projects/projects.component'; const appRoutes: Routes = [ - { path: 'dynamic-form.component', component: DynamicFormComponent, canActivate: [AuthGuard] }, + { path: 'dynamic-form', component: DynamicFormComponent, canActivate: [AuthGuard] }, { path: 'login-page', component: LoginComponent }, + //{ path: 'projects', component: ProjectsComponent}, { path: '', redirectTo: '/login-page', pathMatch: 'full' }, { path: '**', component: PageNotFoundComponent } ]; @@ -15,12 +17,7 @@ const appRoutes: Routes = [ @NgModule({ imports: [ RouterModule.forRoot( - appRoutes, - { - enableTracing: true // <-- debugging purposes only - - } - ) + appRoutes) ], exports: [ RouterModule diff --git a/dmp-frontend/src/app/app.component.ts b/dmp-frontend/src/app/app.component.ts index b882c0b15..aa430ebb5 100644 --- a/dmp-frontend/src/app/app.component.ts +++ b/dmp-frontend/src/app/app.component.ts @@ -7,7 +7,8 @@ import { JsonObjest } from '../app/entities/JsonObject.class'; @Component({ selector: 'app-root', template: ` -