@@ -560,9 +560,6 @@ <h4 id="CdkPortalOutlet" class="docs-header-link docs-api-h4 docs-api-class-name
560
560
Deprecated
561
561
</ div > < p class ="docs-api-property-name ">
562
562
< code > attachDomPortal: (portal: DomPortal) => {
563
- if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
564
- throw Error('Cannot attach DOM portal without _document constructor parameter');
565
- }
566
563
const element = portal.element;
567
564
if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
568
565
throw Error('DOM portal content must be attached to a parent node.');
@@ -972,9 +969,6 @@ <h4 id="PortalHostDirective" class="docs-header-link docs-api-h4 docs-api-class-
972
969
Deprecated
973
970
</ div > < p class ="docs-api-property-name ">
974
971
< code > attachDomPortal: (portal: DomPortal) => {
975
- if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
976
- throw Error('Cannot attach DOM portal without _document constructor parameter');
977
- }
978
972
const element = portal.element;
979
973
if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
980
974
throw Error('DOM portal content must be attached to a parent node.');
@@ -2732,9 +2726,6 @@ <h4 id="DomPortalOutlet" class="docs-header-link docs-api-h4 docs-api-class-name
2732
2726
Deprecated
2733
2727
</ div > < p class ="docs-api-property-name ">
2734
2728
< code > attachDomPortal: (portal: DomPortal) => {
2735
- if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
2736
- throw Error('Cannot attach DOM portal without _document constructor parameter');
2737
- }
2738
2729
const element = portal.element;
2739
2730
if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
2740
2731
throw Error('DOM portal content must be attached to a parent node.');
@@ -3107,9 +3098,6 @@ <h4 id="DomPortalHost" class="docs-header-link docs-api-h4 docs-api-class-name">
3107
3098
Deprecated
3108
3099
</ div > < p class ="docs-api-property-name ">
3109
3100
< code > attachDomPortal: (portal: DomPortal) => {
3110
- if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
3111
- throw Error('Cannot attach DOM portal without _document constructor parameter');
3112
- }
3113
3101
const element = portal.element;
3114
3102
if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
3115
3103
throw Error('DOM portal content must be attached to a parent node.');
0 commit comments