You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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); }
The text was updated successfully, but these errors were encountered:
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);
}
The text was updated successfully, but these errors were encountered: