24 lines
470 B
JavaScript
24 lines
470 B
JavaScript
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: '<'
|
|
}
|
|
});
|