steelsojka / angular-cardview Goto Github PK
View Code? Open in Web Editor NEWThis script is an angular component built for Matteo Spinelli's CardView script.
License: MIT License
This script is an angular component built for Matteo Spinelli's CardView script.
License: MIT License
I'm trying to make server requests when the card changes to preload next and previous cards but I'm unable to get it working. Can you help me with this?
When i turn the pages my content blinks. It's like if it not was updated, i'm using on-update-content directive so when turn a page i preload the next one but it's not being reflected until the page is being displayed. Initially i have three days loaded in my three cards, yesterday, today (the displayed one) and tomorrow, so when i flip the card to tomorrow, i replace yesterday with the day after tomorrow, so i get: today, tomorrow (displayed card) and the day after tomorrow and so on… but i can't get this working cause the content is being updated just when the card is coming into view and not 'behind scenes' to avoid the blinking… do you have any ideas about how to solve this?
can you provide a sample for onUpdateContent override? how should i create my own function to start with same behavior than default one?
The reverse attribute doesn't seems to be working. I am loading asynchronously the three cards, [0] is the displayed one, then [1] should be the next card and [2] the previous one but it's loading inverted. Also, when using var currentIndex = $scope.dataset.indexOf(data); in my controller function onUpdateContent the current index is not the right one or may be i don't understand how the index is working.
Can you verify if it works fine?
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.