Coder Social home page Coder Social logo

Comments (5)

TUSHARDM avatar TUSHARDM commented on May 23, 2024 1

Thank You very much for such a spontaneous and quick reply. really appreciate your solution I used it in below way in my code and its working exactly as expected. Again Thank you for such a nice work. you saved my Day! :-)

<angular-carousel [bullets]="false" [infinite]="false" [auto]="true" [duration]="2500">
<ng-container *ngFor="let item of navItems; let i = index;">
<ng-container *angularCarouselSlide>


My Content {{i+1}}





from angular-carousel.

TUSHARDM avatar TUSHARDM commented on May 23, 2024

https://stackblitz.com/edit/angular-ivy-y5hlpq?file=package.json
https://angular-ivy-y5hlpq.stackblitz.io

from angular-carousel.

marcreichel avatar marcreichel commented on May 23, 2024

Currently, this package is developed and tested with Angular 12. But I will look into this issue with Angular 13. Thanks for opening this issue!

from angular-carousel.

marcreichel avatar marcreichel commented on May 23, 2024

@TUSHARDM It seems the behavior changed somehow. When using ng-container instead of ng-template it works as expected.

So:

<angular-carousel>
    <ng-template *angularCarouselSlide>Content 1</ng-template>
    <ng-template *angularCarouselSlide>Content 2</ng-template>
    <ng-template *angularCarouselSlide>Content 3</ng-template>
</angular-carousel>

becomes:

<angular-carousel>
    <ng-container *angularCarouselSlide>Content 1</ng-container>
    <ng-container *angularCarouselSlide>Content 2</ng-container>
    <ng-container *angularCarouselSlide>Content 3</ng-container>
</angular-carousel>

See: https://stackblitz.com/edit/angular-ivy-qvp5js?file=src/app/app.component.html
And: https://angular-ivy-qvp5js.stackblitz.io

I will update the documentation accordingly.

from angular-carousel.

marcreichel avatar marcreichel commented on May 23, 2024

Apparently, using everything else than ng-template works 👍🏼 So you can use ng-container or just a div 👍🏼 I have updated the docs accordingly. Sorry for the inconvenience.

from angular-carousel.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.