2020-12-01 14:03:15 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
|
|
import { IonicModule } from '@ionic/angular';
|
|
|
|
|
|
|
|
|
|
import { ViewPublicationsPageRoutingModule } from './view-publications-routing.module';
|
|
|
|
|
|
|
|
|
|
import { ViewPublicationsPage } from './view-publications.page';
|
2021-07-28 09:29:14 +01:00
|
|
|
|
2021-06-18 11:01:02 +01:00
|
|
|
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
2020-12-01 14:03:15 +01:00
|
|
|
|
2022-02-25 15:10:10 +01:00
|
|
|
import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IMAGE_HOOKS } from 'ng-lazyload-image';
|
2021-11-29 15:48:35 +01:00
|
|
|
|
2022-02-18 15:28:30 +01:00
|
|
|
export class LazyLoadImageHooks extends IntersectionObserverHooks {
|
|
|
|
|
setup(attributes: Attributes) {
|
|
|
|
|
attributes.offset = 10;
|
|
|
|
|
attributes.defaultImagePath = "/assets/icon/icon-no-image.svg";
|
|
|
|
|
attributes.errorImagePath = "/assets/icon/icon-no-image.svg";
|
|
|
|
|
return super.setup(attributes);
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-29 15:48:35 +01:00
|
|
|
|
2020-12-01 14:03:15 +01:00
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
IonicModule,
|
2021-07-28 09:29:14 +01:00
|
|
|
|
2021-06-18 11:01:02 +01:00
|
|
|
ViewPublicationsPageRoutingModule,
|
|
|
|
|
HeaderPageModule,
|
2021-11-29 15:48:35 +01:00
|
|
|
LazyLoadImageModule
|
2020-12-01 14:03:15 +01:00
|
|
|
],
|
2021-06-03 11:31:19 +01:00
|
|
|
exports: [ViewPublicationsPage],
|
2022-02-18 15:28:30 +01:00
|
|
|
declarations: [ViewPublicationsPage],
|
|
|
|
|
providers: [{provide: LAZYLOAD_IMAGE_HOOKS, useClass: LazyLoadImageHooks}]
|
2020-12-01 14:03:15 +01:00
|
|
|
})
|
|
|
|
|
export class ViewPublicationsPageModule {}
|