Passing input values to Dialog Component [duplicate]

open will give you the component instance , means you can inject what ever you want to it like this : openDialog() { let dialogRef = this.dialog.open(DialogOverviewExampleDialog); let instance = dialogRef.componentInstance; instance.text = “This text can be used inside DialogOverviewExampleDialog template “; console.log(‘dialogRef’,dialogRef); } Then obviously inside the DialogOverviewExampleDialog template you can do : this … Read more

Angular 2 Material – How To Center Progress Spinner

just add margin rule: <md-progress-spinner style=”margin:0 auto;” mode=”indeterminate”></md-progress-spinner> plunker: http://plnkr.co/edit/sEiTZt830ZE7rqjq9YXO?p=preview UPDATE Just wanted to share and demonstrate 6 other general centering solutions FLEX: .center { display: flex; justify-content: center; align-items: center; } /* +++++++ STYLES +++++++ */ .wrapper { height: calc(100vh – 20px); background: red; } .inner { background: green; color: white; padding: 12px; } … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)