La página del modo de entrega de SAP Spartacus no se puede encontrar el control con un mensaje de error

Renderiza los campos correspondientes:

/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * 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
 */
/**
 * Advances to an element for later binding instructions.
 *
 * Used in conjunction with instructions like {@link property} to act on elements with specified
 * indices, for example those created with {@link element} or {@link elementStart}.
 *
 * ```ts
 * (rf: RenderFlags, ctx: any) => {
 *   if (rf & 1) {
 *     text(0, 'Hello');
 *     text(1, 'Goodbye')
 *     element(2, 'div');
 *   }
 *   if (rf & 2) {
 *     advance(2); // Advance twice to the <div>.
 *     property('title', 'test');
 *   }
 *  }
 * ```
 * @param delta Number of elements to advance forwards by.
 *
 * @codeGenApi
 */
function ɵɵadvance(delta) {
    ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');
    selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, getCheckNoChangesMode());
}

Realice init y verifique el gancho:

Gancho de ejecución:

this.formDirective.addControl (esto):
este 指向 FormContrlName:

No se puede encontrar el control deliveryModeIdJerry:

Así que finalmente un error:

Cambie el nombre de deliveryModeId a deliveryModeIdJerry aquí.

El problema se resuelve después de la corrección:

Para obtener más artículos originales de Jerry, siga la cuenta pública "Wang Zixi":

Supongo que te gusta

Origin blog.csdn.net/i042416/article/details/109095977
Recomendado
Clasificación