mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 04:38:15 +00:00
[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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user