There are multiple components used by modal.
- A modal service is used to keep state of modal opened in the applications.
- A modal element directive to define the modal dialog box
- A modal attribute directive as a modal trigger
Parameters:
Name | Type | Description |
---|---|---|
show |
function | Show a modal based on the modal id
|
resize |
function | Update the position and also the size of the modal
|
hide |
function | Hide currently opened modal
|
bindingEvents |
function | Binding escape key or resize event
|
register |
function | Registering modal with the service
|
unregister |
function | Remove modal from modal service
|
clearWaiting |
function | Remove certain modal id from waiting list
|