Comments (5)
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.
https://stackblitz.com/edit/angular-ivy-y5hlpq?file=package.json
https://angular-ivy-y5hlpq.stackblitz.io
from angular-carousel.
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.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-carousel.