I have some htmltext in JS file which is again returning to html page. htmltext contain some circle svg element, which is showing properly when we are retrieve from API. On click of Circle I want to call one js function in same js file. Iwas trying with ng-click But Its not working
htmlText += '<circle ng-click="getUrl()" cx="9.5" cy="9.5" stroke-width="2" stroke="'+statsObj[s].color+'" fill-opacity="0" r="8.00" title="" style="opacity: 1;" data-original-title="'+statsObj[s].state+'" ng-click="getUrl()"></circle>';
Is something is wrong in syntax or we can implement in other way ?? Thanks in Advance.