Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@twogate/ngx-photo-gallery
Advanced tools
PhotoGallery library for Angular based on [PhotoSwipe](http://photoswipe.com/).
PhotoGallery library for Angular based on PhotoSwipe.
Install from npm:
npm install --save @twogate/ngx-photo-gallery
Add PhotoGalleryModule to NgModule imports:
import { PhotoGalleryModule } from '@twogate/ngx-photo-gallery'
@NgModule({
...
imports: [PhotoGalleryModule, ...]
...
})
with options (PhotoSwipeOptions):
import { PhotoGalleryModule } from '@twogate/ngx-photo-gallery'
@NgModule({
...
imports: [PhotoGalleryModule.forRoot({
defaultOptions: {
arrowEl: true,
indexIndicatorSep: '-'
}
}), ...]
...
})
simple use:
<div class="images" photoGalleryGroup>
<div class="images-item" [photoGallery]="image1.originUrl">
<img [src]="image1.thumbnailUrl" />
</div>
<div class="images-item" [photoGallery]="image2.originUrl">
<img [src]="image2.thumbnailUrl" />
</div>
<div class="images-item" [photoGallery]="image3.originUrl">
<img [src]="image3.thumbnailUrl" />
</div>
</div>
with options (PhotoSwipeOptions):
<div class="products" [photoGalleryGroup]="{ arrowEl: true, indexIndicatorSep: ' - ' }">
<div class="products-item">
<div class="products-item-name">{{ product1.name }}</div>
<div class="products-item-image" [photoGallery]="product1.image.originUrl">
<img [src]="product1.image.thumbnailUrl" />
</div>
</div>
<div class="products-item">
<div class="products-item-name">{{ product2.name }}</div>
<div class="products-item-image" [photoGallery]="product2.image.originUrl">
<img [src]="product2.image.thumbnailUrl" />
</div>
</div>
</div>
on Ionic project:
<div
class="images"
photoGalleryGroup
(onPhotoGalleryInit)="setSwipeBackEnabled(false)"
(onPhotoGalleryDestroy)="setSwipeBackEnabled(true)"
>
<div class="images-item"
*ngFor="let image of images"
[photoGallery]="image.originUrl"
>
<img [src]="image.thumbnailUrl" />
</div>
</div>
import { Component, Input } from '@angular/core'
import { NavController } from 'ionic-angular'
@Component({
...
})
export class AppComponent {
images = [...]
constructor(private navCtrl: NavController) {}
setSwipeBackEnabled(value: boolean) {
this.navCtrl.swipeBackEnabled = value
}
}
Move to twogate/ngx-photo-gallery-v0
FAQs
PhotoGallery library for Angular based on [PhotoSwipe](http://photoswipe.com/).
We found that @twogate/ngx-photo-gallery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.