Interface IModalSettings

Index

Properties

Properties

optional public backdrop?: any

controls the 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
default

true

optional public controller?: any

a controller for a modal instance - it can initialize scope used by modal. A controller can be injected with $modalInstance

optional public keyboard?: boolean

indicates whether the dialog should be closable by hitting the ESC key, defaults to true

optional public resolve?: any

members that will be resolved and passed to the controller as locals; it is equivalent of the resolve property for AngularJS routes

optional public scope?: any

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 public template?: string

inline template representing the modal's content

optional public templateUrl?: string

a path to a template representing modal's content

optional public windowClass?: string

additional CSS class(es) to be added to a modal window template