Skip to content

Conversation

@qaraluch
Copy link

Decrease code redundancy by shifting changeVolume function to API. This makes change of global volume variable possible:

angular.module('myApp')
.controller('myCtrl',
  ['$scope', 'angularPlayer', function($scope, angularPlayer){
    angularPlayer.changeVolume(25);
}]);

Decrease code redundancy by shifting changeVolume function to API. This make change global volume variable possible:
```js
angular.module('myApp')
.controller('myCtrl',
  ['$scope', 'angularPlayer', function($scope, angularPlayer){
    angularPlayer.changeVolume(25);
}]);
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

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

Successfully merging this pull request may close these issues.

2 participants