diff --git a/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts b/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts index 3809cf6e03c..c339183ee45 100644 --- a/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts +++ b/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts @@ -50,7 +50,7 @@ function buildDiagnosticForSignal( const templateMapping = ctx.templateTypeChecker.getTemplateMappingAtTcbLocation(symbol.tcbLocation)!; - const errorString = `${node.name} is a function and should be invoked : ${node.name}()`; + const errorString = `${node.name} is a function and should be invoked: ${node.name}()`; const diagnostic = ctx.makeTemplateDiagnostic(templateMapping.span, errorString); return [diagnostic]; } diff --git a/packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts b/packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts index b3a3e545b86..87d0c43fa99 100644 --- a/packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts +++ b/packages/compiler-cli/src/ngtsc/typecheck/extended/index.ts @@ -9,6 +9,7 @@ import {ErrorCode, ExtendedTemplateDiagnosticName} from '../../diagnostics'; import {TemplateCheckFactory} from './api'; +import {factory as interpolatedSignalNotInvoked} from './checks/interpolated_signal_not_invoked'; import {factory as invalidBananaInBoxFactory} from './checks/invalid_banana_in_box'; import {factory as missingControlFlowDirectiveFactory} from './checks/missing_control_flow_directive'; import {factory as missingNgForOfLetFactory} from './checks/missing_ngforof_let'; @@ -21,11 +22,8 @@ export {ExtendedTemplateCheckerImpl} from './src/extended_template_checker'; export const ALL_DIAGNOSTIC_FACTORIES: readonly TemplateCheckFactory[] = [ - invalidBananaInBoxFactory, - nullishCoalescingNotNullableFactory, - optionalChainNotNullableFactory, - missingControlFlowDirectiveFactory, - textAttributeNotBindingFactory, - missingNgForOfLetFactory, - suffixNotSupportedFactory, + invalidBananaInBoxFactory, nullishCoalescingNotNullableFactory, + optionalChainNotNullableFactory, missingControlFlowDirectiveFactory, + textAttributeNotBindingFactory, missingNgForOfLetFactory, suffixNotSupportedFactory, + interpolatedSignalNotInvoked ];