Skip to content

Commit

Permalink
release: update to v18 (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheikalthaf authored Oct 1, 2024
1 parent 460b100 commit 2b63b1c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Demo available [Here](https://ngu-carousel.netlify.app)

| Angular Version | ngu-carousel Version |
| ------------------------ | -------------------------------------------- |
| Angular >= 17 | `npm i --save @ngu/carousel@latest` |
| Angular >= 18 | `npm i --save @ngu/carousel@18` |
| Angular >= 17 | `npm i --save @ngu/[email protected]` |
| Angular >= 16 standalone | `npm i --save @ngu/[email protected]` |
| Angular >= 16 | `npm i --save @ngu/[email protected]` |
| Angular >= 15 | `npm i --save @ngu/[email protected]` |
Expand Down Expand Up @@ -96,19 +97,19 @@ import { NguCarouselConfig } from '@ngu/carousel';
<h1>{{j}}</h1>
</div>
</ngu-tile>
<button NguCarouselPrev class="leftRs" [style.opacity]="myCarousel.isFirst ? 0.5:1">&lt;</button>
<button NguCarouselNext class="rightRs" [style.opacity]="myCarousel.isLast ? 0.5:1">&gt;</button>
<button NguCarouselPrev class="leftRs" [style.opacity]="myCarousel.isFirst() ? 0.5:1">&lt;</button>
<button NguCarouselNext class="rightRs" [style.opacity]="myCarousel.isLast() ? 0.5:1">&gt;</button>
<ul class="myPoint" NguCarouselPoint>
<li *ngFor="let j of myCarousel.pointNumbers; let j = index" [class.active]="j==myCarousel.activePoint" (click)="myCarousel.moveTo(j)"
<li *ngFor="let j of myCarousel.pointNumbers(); let j = index" [class.active]="j==myCarousel.activePoint()" (click)="myCarousel.moveTo(j)"
[style.background]="'url(' + carouselTileItems[j] + ')'"></li>
</ul>
</ngu-carousel>
</ngu-tile>
<button NguCarouselPrev class="leftRs" [style.opacity]="myCarousel.isFirst ? 0.5:1">&lt;</button>
<button NguCarouselNext class="rightRs" [style.opacity]="myCarousel.isLast ? 0.5:1">&gt;</button>
<button NguCarouselPrev class="leftRs" [style.opacity]="myCarousel.isFirst() ? 0.5:1">&lt;</button>
<button NguCarouselNext class="rightRs" [style.opacity]="myCarousel.isLast() ? 0.5:1">&gt;</button>
<ul class="myPoint" NguCarouselPoint>
<li *ngFor="let i of myCarousel.pointNumbers; let i = index" [class.active]="i==myCarousel.activePoint" (click)="myCarousel.moveTo(i)"
<li *ngFor="let i of myCarousel.pointNumbers(); let i = index" [class.active]="i==myCarousel.activePoint()" (click)="myCarousel.moveTo(i)"
[style.background]="'url(' + carouselTileItems[i] + ')'"></li>
</ul>
</ngu-carousel>
Expand Down

0 comments on commit 2b63b1c

Please sign in to comment.