-
-
Notifications
You must be signed in to change notification settings - Fork 608
Closed
Labels
Description
after few days of experiencing I managed to run perfectly FancyTree on angular 4.
You should add it to the manual.
- install jQuery and Fancytree via npm : npm install jquery jquery.fancytree
- install jQuery typings : npm install --save @types/jquery
- include jquery and fancytree in scripts array inside .angular-cli.json . e.g. :
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/jquery.fancytree/dist/jquery.fancytree-all-deps.min.js"
] - include fancytree style inside styles array inside .angular-cli.json . e.g. :
"styles": [
"../node_modules/jquery.fancytree/dist/skin-win8/ui.fancytree.min.css"
], - add jquery and fancytree to types array inside tsconfig.app.json file . e.g. :
"compilerOptions": {
...
"types": ["jquery","jquery.fancytree"]
} - add fancytree html to html componnent. e.g :
- Root node 1
- Child node 1
- Child node 2
}
I'm sure this will help the comunity and I hope this is good contribution.
br.
vihorlat, mar10, jvasi and pers1307