travelist / ng2-file-tree Goto Github PK
View Code? Open in Web Editor NEWAngular2 Components for Rendering Directory Tree
License: MIT License
Angular2 Components for Rendering Directory Tree
License: MIT License
Hi,
In my @component TreeNode in the following line is not resolving:
'clickFileTree(fileNode: TreeNode): void {'
I downloaded ng2-file-tree and run npm install and then npm install in the demo folder and that did not work:
app/app.component.ts(2,10): error TS2305: Module '"C:/worknode/Angular 2/ng2-file-tree-master/demo/node_modules/ng2-directory-tree/ng2-directory-tree"' has no exported me
mber 'DirectoryTreeComponent'.
app/app.component.ts(24,5): error TS7008: Member 'data' implicitly has an 'any' type.
app/app.component.ts(53,16): error TS7006: Parameter 'node' implicitly has an 'any' type.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: tsc && concurrently "tsc -w" "lite-server"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script 'tsc && concurrently "tsc -w" "lite-server" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc && concurrently "tsc -w" "lite-server"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\logston\AppData\Roaming\npm-cache_logs\2017-05-12T08_08_35_657Z-debug.log
ng2-directory-tree 0.4.0
node.component.ts Line 35: <i class="fa fa-file-o"></i> {{ node.name }} aaaas
aaaas
ng2-file-tree
Tree nodes don't display. Only a folder with name "/".
I don't use Angular CLI.
@import url('../node_modules/font-awesome/css/font-awesome.min.css');
in main .css file of index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.