angular/projects/researchdatabox/export/src/app/export.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from "@angular/forms";
// import { NKDatetimeModule } from 'ng2-datetime/ng2-datetime';
import { APP_BASE_HREF, PlatformLocation } from '@angular/common';
import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
import { RedboxPortalCoreModule, trimLastSlashFromUrl } from '@researchdatabox/portal-ng-common';
import { ExportComponent } from './export.component';
@NgModule({
declarations: [
ExportComponent
],
imports: [
BrowserModule,
FormsModule,
BrowserAnimationsModule,
RedboxPortalCoreModule,
BsDatepickerModule.forRoot()
],
providers: [
{
provide: APP_BASE_HREF,
useFactory: (s: PlatformLocation) => trimLastSlashFromUrl(s.getBaseHrefFromDOM()),
deps: [PlatformLocation]
}
],
bootstrap: [ExportComponent]
})
export class ExportModule { }