ivaylokenov/Music-Artists — pull request #1 by pdrosos (2014-09-28 12:29:56+00:00)
Title: Sort and search of albums in artist details page does not work

Sort and search of albums in artist details page does not work. It seems to be a scope issue, because ng-if creates its own child scope. More details here:

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

https://github.com/angular/angular.js/issues/4046
https://github.com/angular/angular.js/issues/7216

Here is a simple fix of this issue, using objects in the sort and search ng-model, instead of scalar values.