driftyco/ionic — pull request #1962 by mrthehud (2014-08-09 20:40:06+00:00)
Title: Allow adding custom classes to $ionicPopup, to assist with contextual styling

I realised there was no easy way to style contextually different popups. Adding a class for, say error popups, allows me to style them differently from success popups, for instance.

Example usage:
```javascript
// An alert dialog
$scope.showAlert = function() {
var alertPopup = $ionicPopup.alert({
class: 'popup-error',
title: 'Don\'t eat that!',
template: 'It might taste good'
});
alertPopup.then(function(res) {
console.log('Thank you for not eating my delicious ice cream cone');
});
};
```

Not sure if class being a reserved word causes problems? Suggestion for alternatives if so? ('theme' perhaps?)