Below is the JQuery tree plugin which i used in previous project
http://www.abeautifulsite.net/jquery-file-tree/
Now i am in need to convert it to the Angularjs Directive.
Can any one help me how to achieve this please?
Below is the JQuery tree plugin which i used in previous project
http://www.abeautifulsite.net/jquery-file-tree/
Now i am in need to convert it to the Angularjs Directive.
Can any one help me how to achieve this please?
Finally got an solution and that too pretty simple one
App.directive('filetree', function () {
return {
restrict: 'A',
replace: 'true',
link: function (scope, element, attrs, ngModelCtrl) {
$(function () {
$('#container_id').fileTree({
root: '/',
script: '/Exm/source/vendors/couple/jqueryFileTree.jsp',
expandSpeed: 1,
collapseSpeed: 1,
multiFolder: false
}, function(file) {
alert(file);
});
});
}
}
});