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
Due to ng-if directive creates new child scope, I can't access $scope.mediaPlayer in parent directive. It's the same problem as when using ng-model with expression without dot; caused by prototype inheritance in AngularJS.
I used this workaround:
with attribute media-player="mediaPlayer.player" and defined $scope.mediaPlayer = {} in parent directive.
The same probably applies to playlist attribute.
The text was updated successfully, but these errors were encountered:
My template
Due to
ng-if
directive creates new child scope, I can't access$scope.mediaPlayer
in parent directive. It's the same problem as when usingng-model
with expression without dot; caused by prototype inheritance in AngularJS.I used this workaround:
with attribute
media-player="mediaPlayer.player"
and defined$scope.mediaPlayer = {}
in parent directive.The same probably applies to playlist attribute.
The text was updated successfully, but these errors were encountered: