Skip to content

danicomas/angular-bootbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

angular-bootbox

makeusabrew/bootbox (https://github.com/makeusabrew/bootbox) to AngularJS

Scripts

<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.2.0/bootbox.js"></script>
<script src="scripts/angular-bootbox.js"></script>

App

var app = angular.module('YourApp', ['angular-bootbox']);
app.config(function ($bootboxProvider) {
  $bootboxProvider.setDefaults({ locale: "es" });
});

Controller

app.controller('eventsController', ['$scope', 'bootbox', function ($scope, bootbox) {
  bootbox.confirm("Are you sure?", function (result) {
      return true;
  });
}]);

About

makeusabrew/bootbox to AngularJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published