Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home-template does not work properly #26

Open
andersonshao opened this issue Dec 25, 2017 · 2 comments
Open

home-template does not work properly #26

andersonshao opened this issue Dec 25, 2017 · 2 comments

Comments

@andersonshao
Copy link

There is no sprint item on page at localhost:8000.

@vandersondev
Copy link

.fetch() is a async functions, if you need to show the results, use de success callback, this function receive the collection, response and options (collection, response, options), after you need to add to collection instance, to correct this View I made the same thing what getOrFetch method do in BaseCollection.

/board/statci/js/views.js

On HomepageView, inside "app.collections.ready.done()"

app.sprints.fetch({ data: {end_min: end}, success: function(collection, response, options) { collection.add(response); self.render(); }

Sorry my bad English.

@andersonshao
Copy link
Author

Thank you very much.

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

No branches or pull requests

2 participants