Problem with ion-content and scope vars inside function

I’m guessing it’s because you aren’t using “dot notations”.

$scope.volume = 5

You need to use :

$scope.data = { 'volume' : 5}

Definitive Resource : https://github.com/angular/angular.js/wiki/Understanding-Scopes