ionicModal
Instantiated by the $ionicModal service.
Be sure to call remove() when you are done with each modal to clean it up and avoid memory leaks.
Note: a modal will broadcast ‘modal.shown’, ‘modal.hidden’, and ‘modal.removed’ events from its originating scope, passing in itself as an event argument. Note: both modal.removed and modal.hidden are called when the modal is removed.
Methods
  initialize(options)
Creates a new modal controller instance.
| Param | Type | Details | 
|---|---|---|
| options | 
        
  object
       | 
      
         An options object with the following properties: 
  | 
    
  show()
Show this modal instance.
- Returns: 
promiseA promise which is resolved when the modal is finished animating in. 
  hide()
Hide this modal instance.
- Returns: 
promiseA promise which is resolved when the modal is finished animating out. 
  remove()
Remove this modal instance from the DOM and clean up.
- Returns: 
promiseA promise which is resolved when the modal is finished animating out. 
  isShown()
- Returns: boolean Whether this modal is currently shown.