I have an angular component which is similar to textEditor(contentEditable div) . It has it's html template. Now based on what user typed , I want to add some dynamic html as well. Something like this:-
<span class="macro consolas-text" (click)="OpenPopup()"></span>
I am able to add this html dynamically to my html template but I am unable to call this function "OpenPopup". I think angular is unable to identify this span since this was added dynamically.
How can I make it work?
OpenPopup()function? Could you emulate that process for Angular 2? - Federico PettinellaOpenPopup()function in your component's class? You'll could trydeclare function OpenPopup;and then using it. - Federico Pettinella