Hi Jun Wu,
Below is the code,
this.oComp = sap.ui.getCore().createComponent({
name: "NameSpace",
url: "UrlToMyTheComponent",
componentData : {
"targetViewName" : "Display"
}
});
this.oCompContainer = new sap.ui.core.ComponentContainer("oCompEdit", {
component: this.oComp,
propagateModel: true,
height: "50%"
});
this.oCompContainer.placeAt(this.getView().byId("id"));
Is there something missing?