diff --git a/src/app/about/about.module.ts b/src/app/about/about.module.ts index c393a44..83f5dfd 100644 --- a/src/app/about/about.module.ts +++ b/src/app/about/about.module.ts @@ -2,12 +2,12 @@ import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core"; import {RouterModule} from "@angular/router"; import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; -import {isDevelopmentGuard} from "../openaireLibrary/error/isDevelopmentGuard.guard"; import {HowItWorksComponent} from "./how-it-works.component"; import {FaqsComponent} from "./faqs.component"; import {BreadcrumbsModule} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.module"; import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service"; import {SliderTabsModule} from "../openaireLibrary/sharedComponents/tabs/slider-tabs.module"; +import {HelperModule} from "../openaireLibrary/utils/helper/helper.module"; @NgModule({ declarations: [HowItWorksComponent, FaqsComponent], @@ -15,22 +15,20 @@ import {SliderTabsModule} from "../openaireLibrary/sharedComponents/tabs/slider- { path: '', redirectTo: 'how-it-works', - canDeactivate: [PreviousRouteRecorder] + canDeactivate: [PreviousRouteRecorder], + pathMatch: 'full' }, { path: 'how-it-works', component: HowItWorksComponent, - canLoad: [isDevelopmentGuard] + data: {extraOffset: 50} }, { - path: 'faq', - component: FaqsComponent, - canLoad: [isDevelopmentGuard] + path: 'faqs', + component: FaqsComponent }, - ]), BreadcrumbsModule, SliderTabsModule], + ]), BreadcrumbsModule, SliderTabsModule, HelperModule], exports: [HowItWorksComponent, FaqsComponent], providers: [PreviousRouteRecorder, PiwikService] }) -export class AboutModule { - -} \ No newline at end of file +export class AboutModule {} diff --git a/src/app/about/how-it-works.component.ts b/src/app/about/how-it-works.component.ts index f66d6bf..f6b49da 100644 --- a/src/app/about/how-it-works.component.ts +++ b/src/app/about/how-it-works.component.ts @@ -35,17 +35,17 @@ import {properties} from "../../environments/environment";
- +
- +
-