@angular/core 21.2.12 → 21.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_attribute-chunk.mjs +1 -1
- package/fesm2022/_debug_node-chunk.mjs +5 -10
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_effect-chunk2.mjs +2 -2
- package/fesm2022/_effect-chunk2.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_untracked-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/index-DcezkXLN.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-46VhtGLQ.cjs +1 -1
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +1 -1
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +1 -1
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.
|
|
2
|
+
* @license Angular v21.2.13
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3409,12 +3409,6 @@ function validateAgainstEventProperties(name) {
|
|
|
3409
3409
|
throw new RuntimeError(306, errorMessage);
|
|
3410
3410
|
}
|
|
3411
3411
|
}
|
|
3412
|
-
function validateAgainstEventAttributes(name) {
|
|
3413
|
-
if (name.toLowerCase().startsWith('on')) {
|
|
3414
|
-
const errorMessage = `Binding to event attribute '${name}' is disallowed for security reasons, ` + `please use (${name.slice(2)})=...`;
|
|
3415
|
-
throw new RuntimeError(306, errorMessage);
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
3412
|
function getSanitizer() {
|
|
3419
3413
|
const lView = getLView();
|
|
3420
3414
|
return lView && lView[ENVIRONMENT].sanitizer;
|
|
@@ -5163,7 +5157,9 @@ function setDomProperty(tNode, lView, propName, value, renderer, sanitizer) {
|
|
|
5163
5157
|
if (tNode.type & 3) {
|
|
5164
5158
|
const element = getNativeByTNode(tNode, lView);
|
|
5165
5159
|
if (ngDevMode) {
|
|
5166
|
-
|
|
5160
|
+
if (lView[TVIEW].firstUpdatePass) {
|
|
5161
|
+
validateAgainstEventProperties(propName);
|
|
5162
|
+
}
|
|
5167
5163
|
if (!isPropertyValid(element, propName, tNode.value, lView[TVIEW].schemas)) {
|
|
5168
5164
|
handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);
|
|
5169
5165
|
}
|
|
@@ -5305,7 +5301,6 @@ function findDirectiveDefMatches(tView, tNode) {
|
|
|
5305
5301
|
function elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {
|
|
5306
5302
|
if (ngDevMode) {
|
|
5307
5303
|
assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
|
|
5308
|
-
validateAgainstEventAttributes(name);
|
|
5309
5304
|
assertTNodeType(tNode, 2, `Attempted to set attribute \`${name}\` on a container node. ` + `Host bindings are not valid on ng-container or ng-template.`);
|
|
5310
5305
|
}
|
|
5311
5306
|
const element = getNativeByTNode(tNode, lView);
|
|
@@ -8781,7 +8776,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
8781
8776
|
}
|
|
8782
8777
|
}
|
|
8783
8778
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
8784
|
-
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.2.
|
|
8779
|
+
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.2.13'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
8785
8780
|
let creationBindings = null;
|
|
8786
8781
|
let updateBindings = null;
|
|
8787
8782
|
let varsToAllocate = 0;
|