I need to open a dialog (modal) in a component in an ngFor loop. I'm pretty sure repeating the modal inside my component is not the answer.
I'm looking for a way to have a Dialog Service in AngulatDart, in Angular2 (TS) I would do something like :
@Injectable()
export class MyDialogService {
constructor(private dialog: MdDialog) {
}
public openDialog() {
let dialogRef: MdDialogRef<MyDialogComponent>;
dialogRef = this.dialog.open(MyDialogComponent);
return dialogRef.afterClosed();
}
}
I didn't find a way to do the same in AngularDart