Wrapped $http method calls in scope.$apply to allow compatibility with Angular 1.1+