[Representation] Update compilation approach

Update compilation approach for templateLinker to more
closely resemble ng-include; minimizes likelihood of
subtle behavioral differences (e.g. incorrect size
selection for split pane)
This commit is contained in:
Victor Woeltjen
2015-10-30 16:37:47 -07:00
parent 454a63e1f1
commit ae928a138c
2 changed files with 24 additions and 9 deletions

View File

@ -121,8 +121,8 @@ define(
function populateElement(template) {
destroyScope();
activeScope = scope.$new(false);
element.empty();
element.append(self.$compile(template)(activeScope));
element.html(template);
self.$compile(element.contents())(activeScope);
}
function badTemplate(templateUrl) {