Regarding closing a dialog. https://material.angular.io/components/component/dialog afterClosed
is not thenable?
As in official main documentation:
Error
Property 'then' does not exist on type '() => Observable<any>'. [default] Checking finished with 1 errors
I tried subscribe, but doesnt work either.