Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Example thoroughly broken #60

Open
neil-s opened this issue Apr 5, 2015 · 4 comments
Open

Example thoroughly broken #60

neil-s opened this issue Apr 5, 2015 · 4 comments

Comments

@neil-s
Copy link

neil-s commented Apr 5, 2015

I'm trying to run the example code provided, but it seems to be outdated and broken. It relies on files that don't exist, including swipecards.js. And when I try to fix the code and run it, I still get an empty cards array for some reason. Not sure how to fix this, or I would have updated it and submitted a pull request myself.

@keithdmoore
Copy link
Contributor

Agreed. The example needs some love. Until someone has time to fix it, maybe take a look at this example: https://github.com/trendicity/trendicity

Look at tab-card.html, card.js and the no-touch.js directive.
You only need the no-touch directive for Android.

@neil-s
Copy link
Author

neil-s commented Apr 5, 2015

Thanks @keithdmoore for the quick response. I have very little experience with Angular, so that example is quite overwhelming in its complexity, hard to see where in the Javascript for the example in this repo do the card objects need to be instantiated.

@keithdmoore
Copy link
Contributor

I see. The cards in trendicity are actually in the form of instagram posts. They get initialized in home.js like this:

$scope.model =  PostsService.getModel();

I hope that helps.

@danieljin
Copy link

+1. Thanks for this. Wish the README was more descriptive.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants