Changed .bind to angular.bind