OverlayService constructor
OverlayService(
- NgZone _ngZone,
- @Inject.new(overlaySyncDom) bool _useDomSynchronously,
- OverlayDomRenderService _renderService,
- @SkipSelf.new() @Optional.new() OverlayService existingInstance,
Implementation
OverlayService(
this._ngZone,
@Inject(overlaySyncDom) this._useDomSynchronously,
this._renderService,
@SkipSelf() @Optional() OverlayService existingInstance) {
assert(() {
// Overlay service should not be injected if it is already available
if (existingInstance != null) {
_logger.severe('OverlayService must be a singleton: '
'Remove nested OverlayService providers such as overlayBindings, '
'popupBindings, datepickerBindings or materialProviders');
}
return true;
}());
}