typescript - How to add form values of a component which are created using dynamic component loader? -


i have component loads using dcl. want add control group parent form.i have made plunker demo . dont know how bind child control group parent.

add() {     this._dcl.loadintolocation(dynamiccmp, this._e, 'location').then((ref) => {       ref.instance._ref = ref;       ref.instance._idx = this.idx++;       this._children.push(ref);     }); } 

and how adding components.somebody please tell me how add child controls control in parent form

i don't think can pass dlc component or vice versa. can do, , think handier solution use:

 this.completeform.addcontrol("sku", new control) 

look @ plunker: http://plnkr.co/edit/mahozqqkyv613n1ntelf?p=preview


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -