I would like to paste some additionals HTML data into HTML element. So I have used an ng-bind-html method, moreover I used "trustAsHtml". Everything works fine. The HTML structure are display. The problem starts when I want to get an element from generated structure. There is an element with id "specyfication". That is why I have tried to get it using command placed bellow, but i receive null.
$document[0].getElementById('specyfication')
The problem has gone when this operation is initialized from some button but I need it without any extra clicks and so one.
I thought that there have to be some option to refresh "$document" and I could do it after data in the ng-bind-html has changed.
Could you give me some tip.