Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(overlay): detach method returns undefined
Currently the JSDoc of the `detach` method describes that the method returns a Promise if the detaching is done. This is not the case and just `undefined` is being returned because every `PortalHost` implementation inside of the CDK is synchronously detaching the view. In the future it might be useful to change this method back to a `Promise` in favor of animations, but for now it doesn't make sense return a `Promise` because the `attach` method is also synchronous. Fixes angular#7408
- Loading branch information