salix/front/core/components/treeview/content.js

24 lines
470 B
JavaScript
Raw Normal View History

2019-10-02 07:54:52 +00:00
import ngModule from '../../module';
class Controller {
constructor($element) {
this.$element = $element;
}
$onInit() {
this.transcludeFunc((tClone, $scope) => {
$scope.item = this.item;
this.$element.append(tClone);
});
}
}
Controller.$inject = ['$element'];
ngModule.component('vnTreeviewContent', {
controller: Controller,
bindings: {
item: '<',
transcludeFunc: '<'
}
});