Edit in JSFiddle

angular.module('mainApp',['oitozero.ngSweetAlert'])
  .controller('mainController', function($scope, SweetAlert) {
    $scope.clickMeToShowMessage = function() {
      SweetAlert.swal({
        type: 'info',
        title: 'Hey, this is important',
        text: 'You rock!',
    	})
    }
  })
<div ng-app="mainApp" ng-controller="mainController">
    <button ng-click="clickMeToShowMessage()">Try me!</button>    
</div>