This commit is contained in:
Peter Maquiran
2023-12-01 12:16:34 +01:00
parent c2a65c76d0
commit 1bd3d5a9f2
12 changed files with 155 additions and 24 deletions
@@ -9,6 +9,7 @@ import { ViewPublicationsPage } from './view-publications.page';
import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IMAGE_HOOKS } from 'ng-lazyload-image';
import { PublicationCardPageModule } from './publication-card/publication-card.module'
import { ShowMorePageModule } from './show-more/show-more.module';
import { VisibilityDirective } from 'src/app/services/directives/visibility.directive';
export class LazyLoadImageHooks extends IntersectionObserverHooks {
setup(attributes: Attributes) {
attributes.offset = 10;
@@ -30,7 +31,7 @@ setup(attributes: Attributes) {
PublicationCardPageModule
],
exports: [ViewPublicationsPage],
declarations: [ViewPublicationsPage],
declarations: [ViewPublicationsPage, VisibilityDirective],
providers: [{provide: LAZYLOAD_IMAGE_HOOKS, useClass: LazyLoadImageHooks}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})