ralftar / ng-mat-carousel Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gbrlsnchs/material2-carousel
A carousel component for Angular using Material
License: MIT License
This project forked from gbrlsnchs/material2-carousel
A carousel component for Angular using Material
License: MIT License
The carousel currently prevents a user from scrolling on touch enabled devices. The user can swipe left/right to change slides, but not up/down for page scrolling.
Platforms tested:
-iPhone 11 Pro, iOS 14.2
-Yoga C740 14", Windows 10 Home
Hello.
When using the library, it is enough to include the license file from repository?
Or I need to additionally include @ralftar in my application license.txt?
Lighthouse reports
I want to show multiple images/ content cards in a single view.
When I give slides:"number" - Its increasing slides only. But I want to show 3 cards in view.
How can I achieve this?
Mainly for images and performance, but somewhat related gbrlsnchs#39
Resizing the screen makes the carousel go back to the first slide.
Is there anyway to stop resizing the screen from doing anything?
dependencies using:
"dependencies": { "@angular-material-extensions/password-strength": "^6.0.0", "@angular/animations": "~10.0.5", "@angular/cdk": "^10.1.0", "@angular/common": "~10.0.5", "@angular/compiler": "~10.0.5", "@angular/core": "~10.0.5", "@angular/fire": "^6.0.2", "@angular/flex-layout": "^9.0.0-beta.31", "@angular/forms": "~10.0.5", "@angular/material": "^10.1.0", "@angular/platform-browser": "~10.0.5", "@angular/platform-browser-dynamic": "~10.0.5", "@angular/router": "~10.0.5", "bootstrap": "^4.5.0", "firebase": "^7.17.1", "hammerjs": "^2.0.8", "mat-video": "^2.8.1", "ng-mat-carousel": "^0.7.7", "ngx-auth-firebaseui": "^4.4.0", "password-strength": "github:angular-material-extensions/password-strength", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" },
As discussed in gbrlsnchs#45
I'm in the process of upgrading my app from Angular 10 to 11. While 0.7.9 seems to work just fine with Angular 11, I'd like to upgrade this package as well. However, when I run npm install [email protected]
I get the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^11.2.11" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"~10.0.4" from [email protected]
npm ERR! node_modules/ng-mat-carousel
npm ERR! ng-mat-carousel@"0.11.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/xxxxx/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxx/.npm/_logs/2021-04-23T16_44_01_703Z-debug.log
I can't for the life of me figure out where @angular/common@"~10.0.4
is coming from. My package.json has "@angular/common": "^11.2.11"
. This project has "@angular/common": "^11.0.2"
. Any thoughts on where this could be coming from?
I was trying to put some inner content in the carousel, the way you did in the demo. Except that, I want the content to be dynamic and based out of a list. I have used the list object for iteration of mat-carousel-slide and it renders the number of slides eual to number of item in list.
However, wen I try to bind some data from the list object in the inner content, the content just doesn't show up.
Am I missing on some property here, or this is not yet supported ?
Below is my code for reference. Using this code, I only get a blank carousel with only indicators and arrows.
[<div [style.height]="'auto'">
<mat-carousel timings="250ms ease-in" [autoplay]="false" interval="5000" color="accent" maxWidth="auto" slides="events.length" [loop]="true" [slideHeight]="'200px'" [maintainAspectRatio]="true" [proportion]="50" [hideArrows]="true" [hideIndicators]="false"
orientation="ltr">
<mat-carousel-slide #matCarouselSlide *ngFor="let slide of events; let i = index" overlayColor="#00000040" [hideOverlay]="true" [image]="'/assets/images/a.png'">
<div>{{slide.name}}</div>
<div>{{slide.description}}</div>
<!-- I want to insert some custom template or a custom component here -->
</mat-carousel-slide>
</mat-carousel>]
Is there a way, I can show content or a component inside?
Hi
Is anyone having a clone of this library or planning to upgrade to angular v15 or v16 as this library has not been updated since long time I am getting blocked in upgrading my parent application to V16 .
Any help will be appreciated
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.