mddialog

Using MdDialogConfig data on Angular 2

余生长醉 提交于 2019-12-01 03:56:45
问题 I'm trying to use a dialog component in Angular 2 using @angular/material2.0.0-beta.1 . What I'm trying to accomplish is to send data (which are values that a person chooses from the interface, the dialog is used to make the person confirm the values they chose) to the dialog and display it. So for example the dialog should say something like this: You chose: option 1: value option 2: value option 3: value Cancel | Confirm How can I pass these values to the dialog I create so that I can just

How can I maintain the state of dialog box with progress all over my Angular 2 application?

╄→尐↘猪︶ㄣ 提交于 2019-11-28 02:13:34
I would like to keep the state of the Md Dialog alive even I close the dialog.So that I can keep the upload status active all over the application. My plan is to store the upload response in the service to maintain the upload progress and an icon will be given in the toolbar.The dialog box reinitializes everytime. How can I maintain the state of dialog box with upload progress all over the application? app.component.ts import { Component, NgZone, Inject, EventEmitter } from '@angular/core'; import { NgUploaderOptions, UploadedFile, UploadRejected } from 'ngx-uploader'; import { MdDialog,

How can I maintain the state of dialog box with progress all over my Angular 2 application?

蹲街弑〆低调 提交于 2019-11-26 22:10:55
问题 I would like to keep the state of the Md Dialog alive even I close the dialog.So that I can keep the upload status active all over the application. My plan is to store the upload response in the service to maintain the upload progress and an icon will be given in the toolbar.The dialog box reinitializes everytime. How can I maintain the state of dialog box with upload progress all over the application? app.component.ts import { Component, NgZone, Inject, EventEmitter } from '@angular/core';