It's very complicate to add this new dialog, it's the only component I'm not able to add myself.
- I don't know if I need to add something to my app.module.ts
- How create this dialog? I really don't understand there is a lot information Dialogreference
I need to set it once? on my root component or what ? because it won't work I can add it to my constructor once I have "no provider MdlDialogReference" once I have "no all parameters (?)".
Actual code:
FILE app.component.ts
constructor( private vcRef: ViewContainerRef,
private dialog: MdlDialogReference, private dialogService: MdlDialogService, private httpService: HttpService, private communicationInsideServices : CommunicationInsideServices, private activatedRoute : ActivatedRoute, private router : Router) {
}
get viewContainerRef() {
return this.vcRef;
}
Is there error? because this won't load my app, And how can I call this dialog into another child component?