Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>$dialog</code> service was refactored into <code>$modal</code> for version <a href="https://github.com/angular-ui/bootstrap/blob/master/CHANGELOG.md">0.6.0</a> of ui-bootstrap. The functionality from <code>$dialog</code> should still be available, just through <code>$modal</code> instead.</p> <p>According to the <a href="http://angular-ui.github.io/bootstrap/">docs</a>, you should make sure you have included <strong>bootstrap's css</strong> and <strong>angular.js</strong> in your page as well as <strong>bootstrap-ui's JS</strong>, which you can download from the doc site. I'd look at the 'create your own' link if you only need to use the <code>$modal</code> service and not the other directives. </p> <p>If these files are included in your page, then make sure the definition of your angular module includes <code>ui.bootstrap</code> as a dependency. e.g.</p> <pre><code>var app = angular.module('myApp', ['ui.bootstrap']); </code></pre> <p>If this is done then you should be able to inject the <code>$modal</code> service within your module, like you would with any other service.</p> <pre><code>app.controller('myController', function($scope, $modal) { $scope.openModal = function() { // Can use $modal service as per examples in doc page }; }); </code></pre> <p>As for solid examples, the docs page has great examples on the page and in plunker (so you can play with them) for each of their services and directives. I would like to link to the plunker here, but I don't seem able to.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload