
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
ng-gallery
Advanced tools
Angular Image Gallery | live demo
Install it with npm
npm install --save ng-gallery
If you are using SystemJS, you should also adjust your configuration to point to the UMD bundle.
In your systemjs config file, map
needs to tell the System loader where to look for ng-gallery
:
map: {
'ng-gallery': 'node_modules/ng-gallery/bundles/ng-gallery.umd.js',
}
Import GalleryModule
and set the gallery configuration in your root module
import { GalleryModule } from 'ng-gallery';
export const galleryConfig : GalleryConfig = {
// ...
}
@NgModule({
imports: [
// ...
GalleryModule.forRoot(galleryConfig)
]
})
After that you will be able to use Gallery's components and there is two options:
<gallery></gallery>
: to insert the gallery right in the template, see basic example<gallery-modal></gallery-modal>
: to open the gallery in a modal, see modal exampleOne final step is to fill the gallery with images and there is two options:
constructor(private gallery: GalleryService) { }
ngOnInit() {
this.gallery.load(images);
}
[gallerize]
directive<div [gallerize] class="content">
<img src="assets/img/img3.jpg" alt="Spring">
<img src="assets/img/img4.jpg" alt="Fire">
<img src="assets/img/img5.jpg" alt="Peacock">
</div>
If you identify any errors in this module, or have an idea for an improvement, please open an issue. I am excited to see what the community thinks of this project, and I would love your input!
0.5.2 beta
FAQs
Angular Gallery
The npm package ng-gallery receives a total of 20,245 weekly downloads. As such, ng-gallery popularity was classified as popular.
We found that ng-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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.