Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 111 forks source link

Replace Angular material with md2 #244

Closed deepakzoto closed 7 years ago

deepakzoto commented 7 years ago

I want to replace angular material 2 with md2 in my codebase due to treeshaking problem in angular material 2 .

So I have following questions:

  1. Does tree-shaking work in md2 ?
  2. Is it possible to open a dialog like this? let dialogRef = this.dialog.open(DialogResultExampleDialogComponent);
  3. Can we subscribe the result after closing the Dialog box?
    dialogRef.afterClosed().subscribe(result => {
    this.selectedOption = result;
     });
  4. Does it have disableClose property? dialog.open(CheckPlansComponent, {disableClose: true});
dharmeshpipariya-zz commented 7 years ago

@deepakzoto yes, you can use md2 library instead of material, but there are then way of dialog is different from material, Please refer API Docs