md2-dialog
Native Angular2 Material Dialog component
Installation
npm install --save md2-dialog
Selector
API
Example:
Confirm Title Body Content...Open Confirm Dialog
//app-module.ts ; //component.ts ...
Properties
[title]
- string - (Default:null
)(Optional) - The title of the dialog
Open/Close Dialog
Use the component's show()
and close()
method to properly trigger the dialog's display. Reference the dialog using in your view to have access to the method to use.