Hi there people of c-sharpcorner,
I got a player that displays the currently or latst played song. Now in order to keep the content updated. I used $interval and $scope.$watch to register the playing song, which displays in the developer console.
Now here's the point I've been stuck on for a few days, since my knowledge of Angular is very limited.
Everytime a change in the songname is detected I want to fire the variable "link" which fires the load() function (this is essentially the one that needs to fire). However, the varbiale is in the controller module. How do I call it?
Like I said, I'm not familiar enough with AngularJS to really edit the code, but I managed to get updated song info, alang with an if-statement so it only fires when a change is detected between the two funtions CurrentSong and LatestSong
I really hate to ask, but I'm really stuck here. If someone could help me out? I feel like the solution is pretty simple.