コンポーネントを動的にロードしていますloadAsRoot コンポーネントをロードした後、UIにコンポーネントがロードされますが、プロパティに値があってもバインドされた補間データはロードされません。補間バインディングが機能しません
var componentLoadPromise = this._componentLoader.loadAsRoot(MyComponent, "#placeholder", this._injector);
return componentLoadPromise.then(myComp=> {
return new Promise<boolean>(resolve =>{
myComp["_hostElement"]["component"]["display"](compOptions, resolve);
});
});
enter code here
Component.ts
// bounded properties
public content: string;
public title: string;
public display(dialogOptions: IDialogParams, resolve: (boolean) => any){
document.onkeyup = null;
this._resolveAction = resolve;
this.setUpElements();
// here my bounded view properties are populated
this.populateViewProperties(dialogOptions);
this.wireEvents();
this._confirmElement.style.display = "block";
}
も参照してください、あなたのコードを共有してください。 Html + Javascript。 – Blunderfest