mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Finally fixed disappearing headers from dynamic columns.
Bind-once optimizations.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = function includeCachedDirective(CompileCacheService) {
|
||||
return {
|
||||
restrict: 'ECA',
|
||||
terminal: true,
|
||||
compile: function (element, attrs) {
|
||||
var srcExp = attrs.ngIncludeCached || attrs.src
|
||||
|
||||
return function (scope, element) {
|
||||
var src = scope.$eval(srcExp)
|
||||
var newScope = scope.$new()
|
||||
CompileCacheService(src, newScope, function (compiledElm) {
|
||||
element.append(compiledElm)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user