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

adding songs to favourites array #20

Closed
iamsome1 opened this issue May 10, 2016 · 1 comment
Closed

adding songs to favourites array #20

iamsome1 opened this issue May 10, 2016 · 1 comment

Comments

@iamsome1
Copy link

I have no idea where to put this code in your tutorial to add songs to favourites array. Inside factory function or outside?
o.addSongToFavorites = function(song) {
if (!song) return false;
o.favorites.unshift(song);
}

@iamsome1
Copy link
Author

I sorted out this, it comes inside that function

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

1 participant