diff --git a/packages/core/src/application_init.ts b/packages/core/src/application_init.ts index d1fabf99da..d464573b44 100644 --- a/packages/core/src/application_init.ts +++ b/packages/core/src/application_init.ts @@ -6,9 +6,9 @@ * found in the LICENSE file at https://angular.io/license */ -import {isPromise} from '../src/util/lang'; - import {Inject, Injectable, InjectionToken, Optional} from './di'; +import {isPromise} from './util/lang'; +import {noop} from './util/noop'; /** @@ -37,10 +37,8 @@ export const APP_INITIALIZER = new InjectionToken void>>('Applicatio */ @Injectable() export class ApplicationInitStatus { - // TODO(issue/24571): remove '!'. - private resolve!: Function; - // TODO(issue/24571): remove '!'. - private reject!: Function; + private resolve = noop; + private reject = noop; private initialized = false; public readonly donePromise: Promise; public readonly done = false; diff --git a/packages/core/test/bundling/forms/bundle.golden_symbols.json b/packages/core/test/bundling/forms/bundle.golden_symbols.json index 343372b335..4c85e1d812 100644 --- a/packages/core/test/bundling/forms/bundle.golden_symbols.json +++ b/packages/core/test/bundling/forms/bundle.golden_symbols.json @@ -626,9 +626,6 @@ { "name": "VERSION" }, - { - "name": "ViewEngineTemplateRef" - }, { "name": "VE_ViewContainerRef" }, @@ -644,6 +641,9 @@ { "name": "ViewEncapsulation" }, + { + "name": "ViewEngineTemplateRef" + }, { "name": "ViewRef" }, @@ -1397,6 +1397,9 @@ { "name": "noop" }, + { + "name": "noop" + }, { "name": "normalizeValidators" }, diff --git a/packages/core/test/bundling/router/bundle.golden_symbols.json b/packages/core/test/bundling/router/bundle.golden_symbols.json index 80875c9f4d..327d563d83 100644 --- a/packages/core/test/bundling/router/bundle.golden_symbols.json +++ b/packages/core/test/bundling/router/bundle.golden_symbols.json @@ -845,9 +845,6 @@ { "name": "VERSION" }, - { - "name": "ViewEngineTemplateRef" - }, { "name": "VE_ViewContainerRef" }, @@ -860,6 +857,9 @@ { "name": "ViewEncapsulation" }, + { + "name": "ViewEngineTemplateRef" + }, { "name": "ViewRef" }, @@ -1721,6 +1721,9 @@ { "name": "noop" }, + { + "name": "noop" + }, { "name": "normalizeQueryParams" }, diff --git a/packages/core/test/bundling/todo/bundle.golden_symbols.json b/packages/core/test/bundling/todo/bundle.golden_symbols.json index 32acaa552f..2162f45566 100644 --- a/packages/core/test/bundling/todo/bundle.golden_symbols.json +++ b/packages/core/test/bundling/todo/bundle.golden_symbols.json @@ -140,9 +140,6 @@ { "name": "TodoStore" }, - { - "name": "ViewEngineTemplateRef" - }, { "name": "VE_ViewContainerRef" }, @@ -152,6 +149,9 @@ { "name": "ViewEncapsulation" }, + { + "name": "ViewEngineTemplateRef" + }, { "name": "ViewRef" },