eu81273 / angular.treeview

AngularJS based Treeview (no jQuery)
MIT License
405 stars 223 forks source link

How to add link to files? #63

Open Shiffalikansal opened 7 years ago

Shiffalikansal commented 7 years ago

When i click on the file in treeview then i want that some other html page should open. So i want to add link to each file(childnode) in json itself and the use it in html page?

awadhesh22791 commented 7 years ago

Yes it is possible to do this by editing tree view library and add anchor tag with href as follows Define function as follows $scope.getLinkToRedirect=function(){ return url; }

This will place required link on href.