diff --git a/packages/core/src/render3/global_utils_api.ts b/packages/core/src/render3/global_utils_api.ts index 82f683fd0f..330918cf03 100644 --- a/packages/core/src/render3/global_utils_api.ts +++ b/packages/core/src/render3/global_utils_api.ts @@ -15,6 +15,5 @@ * file in the public_api_guard test. */ -export {markDirty} from './instructions/all'; export {applyChanges} from './util/change_detection_utils'; export {Listener, getComponent, getContext, getDirectives, getHostElement, getInjector, getListeners, getOwningComponent, getRootComponents} from './util/discovery_utils'; diff --git a/packages/core/src/render3/instructions/change_detection.ts b/packages/core/src/render3/instructions/change_detection.ts index bb9ad7ba5a..420e074b01 100644 --- a/packages/core/src/render3/instructions/change_detection.ts +++ b/packages/core/src/render3/instructions/change_detection.ts @@ -32,9 +32,6 @@ export function detectChanges(component: {}): void { * detection can be scheduled per component tree. * * @param component Component to mark as dirty. - * - * @publicApi - * @globalApi ng */ export function markDirty(component: {}): void { ngDevMode && assertDefined(component, 'component'); diff --git a/packages/core/src/render3/util/global_utils.ts b/packages/core/src/render3/util/global_utils.ts index bc9319af4b..3c9f4eebfc 100644 --- a/packages/core/src/render3/util/global_utils.ts +++ b/packages/core/src/render3/util/global_utils.ts @@ -7,8 +7,6 @@ */ import {assertDefined} from '../../util/assert'; import {global} from '../../util/global'; -import {markDirty} from '../instructions/all'; - import {applyChanges} from './change_detection_utils'; import {getComponent, getContext, getDirectives, getHostElement, getInjector, getListeners, getOwningComponent, getRootComponents} from './discovery_utils'; @@ -50,7 +48,6 @@ export function publishDefaultGlobalUtils() { publishGlobalUtil('getInjector', getInjector); publishGlobalUtil('getRootComponents', getRootComponents); publishGlobalUtil('getDirectives', getDirectives); - publishGlobalUtil('markDirty', markDirty); publishGlobalUtil('applyChanges', applyChanges); } } diff --git a/packages/core/test/render3/global_utils_spec.ts b/packages/core/test/render3/global_utils_spec.ts index d3d6295676..a0923bb02f 100644 --- a/packages/core/test/render3/global_utils_spec.ts +++ b/packages/core/test/render3/global_utils_spec.ts @@ -5,7 +5,6 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ -import {ɵmarkDirty as markDirty} from '@angular/core'; import {applyChanges} from '../../src/render3/util/change_detection_utils'; import {getComponent, getContext, getDirectives, getHostElement, getInjector, getListeners, getOwningComponent, getRootComponents} from '../../src/render3/util/discovery_utils'; @@ -45,8 +44,6 @@ describe('global utils', () => { it('should publish getInjector', () => { assertPublished('getInjector', getInjector); }); - it('should publish markDirty', () => { assertPublished('markDirty', markDirty); }); - it('should publish applyChanges', () => { assertPublished('applyChanges', applyChanges); }); }); }); diff --git a/tools/public_api_guard/global_utils.d.ts b/tools/public_api_guard/global_utils.d.ts index b4dc91e349..11f3023690 100644 --- a/tools/public_api_guard/global_utils.d.ts +++ b/tools/public_api_guard/global_utils.d.ts @@ -23,5 +23,3 @@ export interface Listener { type: 'dom' | 'output'; useCapture: boolean; } - -export declare function markDirty(component: {}): void;