Skip to content

Commit 4b757e6

Browse files
committed
fix(cdk/overlay): provide Overlay in root (#25909)
Switches the `Overlay` injectable to be provided at the root. (cherry picked from commit 5942ebf)
1 parent 6cee17e commit 4b757e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/overlay/overlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let nextUniqueId = 0;
4141
*
4242
* An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
4343
*/
44-
@Injectable()
44+
@Injectable({providedIn: 'root'})
4545
export class Overlay {
4646
private _appRef: ApplicationRef;
4747

0 commit comments

Comments
 (0)