Appends the modal to a specific element.
Sets the aria-describedby
property on the modal.
The string should be an id (without the leading '#') pointing to the element that describes your modal.
Sets the aria-labelledby
property on the modal.
The string should be an id (without the leading '#') pointing to the element that labels your modal.
controls the presence of a backdrop Allowed values:
additional CSS class(es) to be added to a modal backdrop template
When used with controllerAs and set to true, it will bind the controller properties onto the $scope directly.
A string reference to the component to be rendered that is registered with Angular's compiler. If using a directive, the directive must have restrict: 'E'
and a template or templateUrl set.
It supports these bindings:
close
- A method that can be used to close a modal, passing a result. The result must be passed in this format: {$value: myResult}
dismiss
- A method that can be used to dismiss a modal, passing a result. The result must be passed in this format: {$value: myRejectedResult}
modalInstance
- The modal instance. This is the same $uibModalInstance
injectable found when using controller
.resolve
- An object of the modal resolve values. See [UI Router resolves] for details.a controller for a modal instance - it can initialize scope used by modal.
A controller can be injected with $modalInstance
If value is an array, it must be in Inline Array Annotation format for injection (strings followed by factory method)
an alternative to the controller-as syntax, matching the API of directive definitions. Requires the controller option to be provided as well
indicates whether the dialog should be closable by hitting the ESC key
The class added to the body element when the modal is opened.
members that will be resolved and passed to the controller as locals; it is equivalent of the resolve
property for AngularJS routes
If property value is an array, it must be in Inline Array Annotation format for injection (strings followed by factory method)
a scope instance to be used for the modal's content (actually the $modal service is going to create a child scope of a provided scope).
Defaults to $rootScope
.
Optional suffix of modal window class. The value used is appended to the modal-
class, i.e. a value of sm
gives modal-sm
.
inline template representing the modal's content
a path to a template representing modal's content
additional CSS class(es) to be added to a modal window template
a path to a template overriding modal's window template
CSS class(es) to be added to the top modal window.
Generated using TypeDoc
Set to false to disable animations on new modal/backdrop. Does not toggle animations for modals/backdrops that are already displayed.
true