==================
An angular service which expose sweetalert in angular way.
Since sweetalert import google-fonts, developer in China may found issue while loading the sweet-alert.css. Just delete the first line from it to solve the problem or download the fonts.
bower install sweetalert --save
bower install angular-h-sweetalert --save
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>DEMO</title>
<link rel="stylesheet" type="text/css" href="libs/sweet-alert.css">
</head>
<body>
<script type="text/javascript" src="libs/sweet-alert.min.js"></script>
<script type="text/javascript" src="libs/angular.min.js"></script>
<script type="text/javascript" src="ngSweetAlert.js"></script>
</body>
</html>
var demo = angular.module('demo', ['hSweetAlert']);
demo.controller('demoController', function($scope, sweet) {
$scope.basic = function() {
sweet.show('Simple right?');
};
});
See full featured demo: http://leftstick.github.io/angular-sweetalert/