@ecodev/angular-natural-gallery

Thin wrapper for @ecodev/natural-gallery-js.

Usage no npm install needed!

<script type="module">
  import ecodevAngularNaturalGallery from 'https://cdn.skypack.dev/@ecodev/angular-natural-gallery';
</script>

README

@ecodev/angular-natural-gallery

Build Status

Thin wrapper for @ecodev/natural-gallery-js.

Installation

To install this library, run:

$ yarn add @ecodev/angular-natural-gallery

Consuming your library in your Angular AppModule

import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppComponent} from './app.component';

// Import the library
import {NaturalGalleryModule} from '@ecodev/angular-natural-gallery';

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,

    // Specify the library as an import
    NaturalGalleryModule,
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

Once the library is imported, you can use its components, directives and pipes in your Angular application:

<natural-gallery></natural-gallery>

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ yarn prod

To lint all *.ts files:

$ yarn lint

License

MIT © Samuel Baptista