Skip to content

Commit

Permalink
fix(cdk/overlay): provide Overlay in root (#25909)
Browse files Browse the repository at this point in the history
Switches the `Overlay` injectable to be provided at the root.

(cherry picked from commit 5942ebf)
  • Loading branch information
crisbeto committed Nov 2, 2022
1 parent 6cee17e commit 4b757e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/overlay/overlay.ts
Expand Up @@ -41,7 +41,7 @@ let nextUniqueId = 0;
*
* An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
*/
@Injectable()
@Injectable({providedIn: 'root'})
export class Overlay {
private _appRef: ApplicationRef;

Expand Down

0 comments on commit 4b757e6

Please sign in to comment.