added new componente for publication swiper

This commit is contained in:
Eudes Inácio
2024-04-11 08:19:07 +01:00
parent 80fe8a4041
commit 622061bd6b
9 changed files with 521 additions and 47 deletions
@@ -10,7 +10,7 @@ import { ViewPublicationsPage } from './view-publications.page';
import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IMAGE_HOOKS } from 'ng-lazyload-image';
import { ShowMorePageModule } from 'src/app/shared/publication/view-publications/show-more/show-more.module'
import { VisibilityDirective } from 'src/app/services/directives/visibility1.directive';
import { SwiperPageModule } from 'src/app/shared/swiper/swiper.module';
export class LazyLoadImageHooks extends IntersectionObserverHooks {
setup(attributes: Attributes) {
attributes.offset = 10;
@@ -30,9 +30,10 @@ setup(attributes: Attributes) {
LazyLoadImageModule,
//page
ShowMorePageModule,
SwiperPageModule
],
exports: [ViewPublicationsPage],
declarations: [ViewPublicationsPage, VisibilityDirective],
declarations: [ViewPublicationsPage],
providers: [{provide: LAZYLOAD_IMAGE_HOOKS, useClass: LazyLoadImageHooks}],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})