auser / ng-newsletter-beginner-series

The official repository of the beginner series tutorial on ng-newsletter.com
149 stars 369 forks source link

NPR Player fails to load correctly #5

Open pdhoward opened 9 years ago

pdhoward commented 9 years ago

Hi - Thank you for the 7 part series and the repository. I followed the series -- worked the problems -- and then downloaded your project. I am a Newbie with Angular -- and cannot figure out the source of fatal digest error on the following app.directive

app.directive('nprLink', function() { console.log ("entered main.js directive nprlink"); return { restrict: 'EA', require: ['^ngModel'], replace: true, scope: { ngModel: '=', player: '=' // changed from player: '=' }, templateUrl: 'http://localhost:8080/view/nprListItem.html', link: function(scope, ele, attr) { scope.duration = scope.ngModel.audio[0].duration.$text; } } });

If I change the scope property to "play" (with no good logic other than hacking the code) -- then the page loads -- but the button to play an NPR program does not work

Can you provide any direction on how to resolve?

sorianog commented 7 years ago

@pdhoward Could you provide the error message that you are seeing?