In modal getting previous $scope value


#1

Hi Folks, I am Creating a Web Music Player where the music player is displayed in a Model. I am storing my playlist in $scope.songs. Problem is when I add a new track to the playlist using addToPlayList() the $scope.songs remains same. However it changed on the playlist.html but not in player.html which is displayed in modal.


#2

Could you paste some of your code here or in a codepen? How are you declaring the modal?

I’ve tried to recreate your problem with this codepen, but I don’t think I fully understand the problem.