This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -286,13 +286,14 @@ <h3 class="demo-content__headline">Sharing data with the Dialog component</h3>
286286 < pre >
287287 <![CDATA[
288288 import { Component, Inject } from '@angular/core';
289- import { MdcDialogRef } from '@angular-mdc/web';
289+ import { MdcDialogRef, MDC_DIALOG_DATA } from '@angular-mdc/web';
290290 @Component({
291291 // ...
292292 })
293293 export class YourDialog {
294- constructor(public dialogRef: MdcDialogRef< YourDialog > ) {
295- userName: string = this.dialogRef.data.userName;
294+ constructor(public dialogRef: MdcDialogRef< YourDialog > ,
295+ @Inject(MDC_DIALOG_DATA) public data: DialogData) {
296+ userName: string = data.name;
296297 }
297298 }]]>
298299 </ pre >
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ <h4 class="demo-landing__label">for Angular</h4>
77< div class ="demo-layout__column demo-layout--center demo-landing__secondary ">
88 < p class ="demo-landing__subtitle "> A faithful and accurate representation of Material Design.</ p >
99 < button raised secondary mdc-button [routerLink] ="['/getting-started'] "> Get Started</ button >
10- < span class ="demo-landing__version "> v0.40.0 </ span >
10+ < span class ="demo-landing__version "> v0.40.1 </ span >
1111</ div >
Original file line number Diff line number Diff line change 88 "url" : " https://github.com/trimox/angular-mdc-web.git"
99 },
1010 "license" : " MIT" ,
11- "version" : " 0.40.0 " ,
11+ "version" : " 0.40.1 " ,
1212 "engines" : {
1313 "node" : " >= 9.11.1"
1414 },
Original file line number Diff line number Diff line change 77 "type" : " git" ,
88 "url" : " https://github.com/trimox/angular-mdc-web.git"
99 },
10- "version" : " 0.40.0 " ,
10+ "version" : " 0.40.1 " ,
1111 "license" : " MIT" ,
1212 "keywords" : [
1313 " angular-mdc" ,
Original file line number Diff line number Diff line change 2222 "typings" : " ./web.d.ts" ,
2323 "private" : false ,
2424 "dependencies" : {
25- "@angular-mdc/theme" : " 0.40.0 "
25+ "@angular-mdc/theme" : " 0.40.1 "
2626 },
2727 "peerDependencies" : {
2828 "@angular/core" : " 0.0.0-NG" ,
You can’t perform that action at this time.
0 commit comments