You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Move backdropClass logic into compile function because otherwise
modifying classes in the compile function is broken when using an interpolated
class attribute.
Fixesangular-ui#1007Closesangular-ui#2725
Copy file name to clipboardExpand all lines: src/modal/docs/readme.md
+4
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ The `$modal` service has only one method: `open(options)` where available option
9
9
*`controller` - a controller for a modal instance - it can initialize scope used by modal. Accepts the "controller-as" syntax in the form 'SomeCtrl as myctrl'; can be injected with `$modalInstance`
10
10
*`controllerAs` - an alternative to the controller-as syntax, matching the API of directive definitions. Requires the `controller` option to be provided as well
11
11
*`resolve` - members that will be resolved and passed to the controller as locals; it is equivalent of the `resolve` property for AngularJS routes
12
+
*`animation` - set to false to disable animations on new modal/backdrop. Does not toggle animations for modals/backdrops that are already displayed.
12
13
*`backdrop` - controls presence of a backdrop. Allowed values: true (default), false (no backdrop), `'static'` - backdrop is present but modal window is not closed when clicking outside of the modal window.
13
14
*`keyboard` - indicates whether the dialog should be closable by hitting the ESC key, defaults to true
14
15
*`backdropClass` - additional CSS class(es) to be added to a modal backdrop template
@@ -35,3 +36,6 @@ Finally, a `modal.closing` event is broadcast to the modal scope before the moda
35
36
preventDefault on the event, then the modal will remain open. The $close and $dismiss methods return true if the
36
37
event was allowed. The event itself includes a parameter for the result/reason and a boolean parameter that indicates
37
38
whether the modal is being closed (true) or dismissed.
39
+
40
+
The `modalConfig` exposes the following global option for all modals/backdrops:
0 commit comments