SAP Spartacus delivery mode页面Cannot find control with的错误消息
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus delivery mode页面Cannot find control with的错误消息
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
渲染對應的字段:
/*** @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()); }執行init和檢查hook:
執行hook:
this.formDirective.addControl(this):
this指向FormContrlName:
找不到deliveryModeIdJerry這個控件:
所以最后報錯:
在這里將deliveryModeId重命名成deliveryModeIdJerry即可。
糾正之后問題解決:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP Spartacus delivery mode页面Cannot find control with的错误消息的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SAP Spartacus delive
- 下一篇: jasmine fixture.debu