I am trying to get the innerHTML
of an element with dynamic content form within a directive.
Below is the Plunker:
https://plnkr.co/edit/rXVin1LPWzpH4eMqZc7R?p=preview
The one in green is the expected result. The one in red is the part I hope to get working.
Notice on the console.log
result, the outcome for el.innerHTML
is {{ item }}
. Why isn't it getting the text that is bound to it? How do I get it to work?