I'm using Timeline JS to build a timeline. In the timeline there are elements, I want the elements to be click-able.
In my directive link function I build the click able element content like so:
var stringToBeAdded = '<a ng-click="setPage(2)" href="javascript:void(0)">March 10, 2015</a>'
However, after the string is added to the DOM, it does execute the setPage()
function within my controller when clicked. The scope is correct.