tpModal is a Javascript library to simplify access to the ui.bootstrap Modal popup. Angular, ui.bootstrap, and bootstrap-3 css is required. The goal is to create a simple core library that leverages all the goodness of bootstrap but exposes it through a simple angular service.
0.1
##Demo
- Demo can be found at http://codepen.io/jaimetorres/pen/doLMmZ
-
Link to tpModal.js
<script src="tpModal.js"></script>
-
Add it to your app
angular.module('MyCoolApp', ['ui.bootstrap', 'torresPub'])
-
Inject the service in your directive/controller
angular.module('MyCoolApp').controller('MyAwesomeController', function($scope, tpModal) { });
-
Use tpModal to display a dialog
//Display a message with no title tpModal.show('Hello World!');