@ecodev/angular-natural-gallery
Advanced tools
Comparing version 17.0.0 to 18.0.0
@@ -27,4 +27,4 @@ import { EventEmitter, OnInit } from '@angular/core'; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalGalleryComponent<any>, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalGalleryComponent<any>, "natural-gallery", never, { "options": { "alias": "options"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "activate": "activate"; "select": "select"; "pagination": "pagination"; }, never, never, false, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalGalleryComponent<any>, "natural-gallery", never, { "options": { "alias": "options"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "activate": "activate"; "select": "select"; "pagination": "pagination"; }, never, never, true, never>; | ||
} | ||
//# sourceMappingURL=natural-gallery.component.d.ts.map |
{ | ||
"name": "@ecodev/angular-natural-gallery", | ||
"version": "17.0.0", | ||
"version": "18.0.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "github:Ecodev/angular-natural-gallery", |
export { NaturalGalleryComponent } from './lib/natural-gallery/natural-gallery.component'; | ||
export { NaturalGalleryModule } from './lib/natural-gallery.module'; | ||
export * from '@ecodev/natural-gallery-js'; | ||
//# sourceMappingURL=public_api.d.ts.map |
@@ -12,36 +12,19 @@ # @ecodev/angular-natural-gallery | ||
```bash | ||
$ yarn add @ecodev/angular-natural-gallery | ||
yarn add @ecodev/angular-natural-gallery | ||
``` | ||
## Consuming your library in your Angular `AppModule` | ||
## Consuming the library | ||
In your standalone component, import `NaturalGalleryComponent`: | ||
```typescript | ||
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], | ||
@Component({ | ||
selector: 'app-root', | ||
template: '<natural-gallery></natural-gallery>', | ||
standalone: true, | ||
imports: [NaturalGalleryComponent], | ||
}) | ||
export class AppModule {} | ||
export class AppComponent {} | ||
``` | ||
Once the library is imported, you can use its components, directives and pipes in your Angular application: | ||
```html | ||
<natural-gallery></natural-gallery> | ||
``` | ||
## Development | ||
@@ -48,0 +31,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
49793
14
272
46