I'm loading a component dynamically via loadAsRoot After I load the component, the component is loaded in the UI but the bounded interpolated data isn't loaded even though it's properties have values.
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";
}