2021-03-12 14:38:55 +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';
|
2021-06-03 10:41:25 +01:00
|
|
|
import { ViewPublicationsPage } from './view-publications.page';
|
2022-02-18 15:28:30 +01:00
|
|
|
import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IMAGE_HOOKS } from 'ng-lazyload-image';
|
|
|
|
|
|
|
|
|
|
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-03-12 14:38:55 +01:00
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
IonicModule,
|
2022-02-18 15:28:30 +01:00
|
|
|
ViewPublicationsPageRoutingModule,
|
|
|
|
|
LazyLoadImageModule
|
2021-03-12 14:38:55 +01:00
|
|
|
],
|
2021-06-03 10:41:25 +01:00
|
|
|
exports: [ViewPublicationsPage],
|
2022-02-18 15:28:30 +01:00
|
|
|
declarations: [ViewPublicationsPage],
|
|
|
|
|
providers: [{provide: LAZYLOAD_IMAGE_HOOKS, useClass: LazyLoadImageHooks}]
|
2021-03-12 14:38:55 +01:00
|
|
|
})
|
|
|
|
|
export class ViewPublicationsPageModule {}
|