I am getting setting some html text in my
$scope.message = "dum messge<a data-ng-click='loadCalenderData()'>retry</a>";
Because it's not $compiled. When you bind-html, that doesn't tell Angular to search through that HTML and compile directives within it. You'll need a custom directive for this.