Skip to content

Commit

Permalink
chore:update version and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev authored Jul 23, 2023
1 parent a658274 commit ca03748
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 8 deletions.
40 changes: 37 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Demo available [Here](https://ngu-carousel.netlify.app)

| Angular Version | ngu-carousel Version |
| --------------- | ----------------------------------- |
| Angular >= 15 | `npm i --save @ngu/carousel@latest` |
| Angular >= 16 standalone | `npm i --save @ngu/carousel@latest` |
| Angular >= 16 | `npm i --save @ngu/[email protected]` |
| Angular >= 15 | `npm i --save @ngu/[email protected]` |
| Angular >= 14 | `npm i --save @ngu/[email protected]` |
| Angular >= 13 | `npm i --save @ngu/[email protected]` |
| Angular >= 12 | `npm i --save @ngu/[email protected]` |
Expand All @@ -39,12 +41,44 @@ Demo available [Here](https://ngu-carousel.netlify.app)
1. Include Carousel needed parts in your module or component (all carousel components and directives are standalone):

```typescript
import { NguCarouselModule } from '@ngu/carousel';
import {
NguCarousel,
NguCarouselDefDirective,
NguCarouselNextDirective,
NguCarouselPrevDirective,
NguItemComponent
} from '@ngu/carousel';

@NgModule({
imports: [NguCarousel, NguTileComponent, NguCarouselDefDirective]
imports: [
NguCarousel,
NguTileComponent,
NguCarousel,
NguCarouselDefDirective,
NguCarouselNextDirective,
NguCarouselPrevDirective,
NguItemComponent
]
})
export class AppModule {}

OR

@Component({
imports: [
NguCarousel,
NguTileComponent,
NguCarousel,
NguCarouselDefDirective,
NguCarouselNextDirective,
NguCarouselPrevDirective,
NguItemComponent
],
standalone: true
})
export class AppComponent {}


```

2. Then use in your component:
Expand Down
39 changes: 36 additions & 3 deletions libs/ngu/carousel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Demo available [Here](https://ngu-carousel.netlify.app/)

| Angular Version | ngu-carousel Version |
| --------------- | ----------------------------------- |
| Angular >= 15 | `npm i --save @ngu/carousel@latest` |
| Angular >= 16 standalone | `npm i --save @ngu/carousel@latest` |
| Angular >= 16 | `npm i --save @ngu/[email protected]` |
| Angular >= 15 | `npm i --save @ngu/[email protected]` |
| Angular >= 14 | `npm i --save @ngu/[email protected]` |
| Angular >= 13 | `npm i --save @ngu/[email protected]` |
| Angular >= 12 | `npm i --save @ngu/[email protected]` |
Expand All @@ -27,12 +29,43 @@ Demo available [Here](https://ngu-carousel.netlify.app/)
Include CarouselModule in your app module:

```javascript
import { NguCarouselModule } from '@ngu/carousel';
import {
NguCarousel,
NguCarouselDefDirective,
NguCarouselNextDirective,
NguCarouselPrevDirective,
NguItemComponent
} from '@ngu/carousel';

@NgModule({
imports: [NguCarouselModule]
imports: [
NguCarousel,
NguTileComponent,
NguCarousel,
NguCarouselDefDirective,
NguCarouselNextDirective,
NguCarouselPrevDirective,
NguItemComponent
]
})
export class AppModule {}

OR

@Component({
imports: [
NguCarousel,
NguTileComponent,
NguCarousel,
NguCarouselDefDirective,
NguCarouselNextDirective,
NguCarouselPrevDirective,
NguItemComponent
],
standalone: true
})
export class AppComponent {}

```

Now ngu-carousel supports touch with the help of hammerjs
Expand Down
2 changes: 1 addition & 1 deletion libs/ngu/carousel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngu/carousel",
"version": "7.2.1",
"version": "8.0.0",
"peerDependencies": {
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngu-carousel-example",
"version": "7.2.1",
"version": "8.0.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit ca03748

Please sign in to comment.