I am using http://angular-ui.github.io/bootstrap/ modal.
Now i want to open Modal whenever page loads
<script> $(document).ready(function () { open('lg'); }); </script> I am using http://angular-ui.github.io/bootstrap/ modal.
Now i want to open Modal whenever page loads
<script> $(document).ready(function () { open('lg'); }); </script> Angular http://angular-ui.github.io/bootstrap/ has a directive and the $modal service and both of those can be used to open modal windows.
you then need to use:
$modal.dialog({}).open('modalContent.html'); there is a similar question in here: Invoking modal window in AngularJS Bootstrap UI using JavaScript
$dialog doesn't exist anymore. You can see in this changelog $dialog service was refactored into $modal.Module API has a run method. In your code for you app you add code to open the dialog in the run callback
angular.module('myAppModule').run(function($modal) { $modal.open(options); //the option data. See documentation. });