Skip to content

Commit

Permalink
chore: release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Dec 7, 2019
1 parent 1662398 commit 1029636
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion projects/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ <h2>Data Grid</h2>
<h1>Experiment</h1>
<h2>3D Text</h2>
<div>
<mtx-text3d text="3D Text"></mtx-text3d>
<!-- <mtx-text3d text="3D Text"></mtx-text3d> -->
</div>
15 changes: 7 additions & 8 deletions projects/demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, Inject } from '@angular/core';

import { MatDialog } from '@angular/material';
import { MtxDialog } from '@ng-matero/extensions';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';

Expand Down Expand Up @@ -125,7 +126,7 @@ export class AppComponent {
list = ELEMENT_DATA;
isLoading = false;

constructor(private mtxDialog: MtxDialog) {}
constructor(private matDialog: MatDialog, private mtxDialog: MtxDialog) {}

onClosed(e: any) {
console.log(e);
Expand All @@ -138,12 +139,10 @@ export class AppComponent {
}

open() {
const dialogRef = this.mtxDialog.open(
{
width: '250px',
},
DialogOverviewComponent
);
const dialogRef = this.matDialog.open(DialogOverviewComponent, {
width: '250px',
data: {name: 'this.name', animal: 'this.animal'}
});

dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
Expand All @@ -158,7 +157,7 @@ export class AppComponent {
<div mat-dialog-content>
<p>What's your favorite animal?</p>
<mat-form-field>
<input matInput />
<input matInput/>
</mat-form-field>
</div>
<div mat-dialog-actions>
Expand Down
4 changes: 2 additions & 2 deletions projects/demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
MtxAlertModule,
MtxDataGridModule,
} from '@ng-matero/extensions';
import { MtxText3dModule } from '@ng-matero/extensions/text3d';
// import { MtxText3dModule } from '@ng-matero/extensions/text3d';

import { DialogOverviewComponent } from './app.component';

Expand All @@ -27,7 +27,7 @@ import { DialogOverviewComponent } from './app.component';
MtxDialogModule,
MtxAlertModule,
MtxDataGridModule,
MtxText3dModule,
// MtxText3dModule,
],
providers: [],
bootstrap: [AppComponent],
Expand Down
2 changes: 1 addition & 1 deletion projects/extensions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ng-matero/extensions",
"version": "0.3.0",
"version": "0.3.1",
"description": "Angular Material Extensions",
"author": "nzbin<[email protected]>",
"repository": {
Expand Down

0 comments on commit 1029636

Please sign in to comment.