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

NPR Player fails to load correctly #5

Open
pdhoward opened this issue Aug 17, 2015 · 1 comment
Open

NPR Player fails to load correctly #5

pdhoward opened this issue Aug 17, 2015 · 1 comment

Comments

@pdhoward
Copy link

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
Copy link

sorianog commented Mar 28, 2017

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

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

2 participants