My app context is generated in the run-time, on onsen 1.3 i was using this function to generate the HTML and compile it,
$scope.generateFrom = function (div) {
var el = div;
var html = HTMLGenerator.getHTML();
el.innerHTML = html;
ons.compile(el);
}
But after upgrading to onsen 2/Angular i am getting this error
"Error: First argument must be an instance of HTMLElement.
Any suggestions to fix this issue ?