I recompiled my html by the following way when I was needed to recompile my html to apply the changes on the page.
It happens when I was trying to go to other link and back again to the page but for some reason the angular code was not compiling.
So I fixed this by compiling the html part of the page again at a load event.
function OnLoad() {
angular.element("form:first").injector().invoke(['$compile', function ($compile) {
var $scope = angular.element("form:first").scope();
$compile("form:first")($scope);
}]);
}
Below is the app declaration.
<form ng-app="formioApp" ng-controller="formioAppCtrl">
and OnLoad() function is assigned in a html element's onload event on that page.