I had been use jhipster gen a web application,need display a tree in component, according doc of https://angular2-tree.readme.io/docs in main.component.html, and main.component.ts add it display OK, but in home.component.html and home.component.ts add same code, it render empty node.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
in home.modules.ts add follow line import { TreeModule} from 'angular-tree-component'; then import TreeModule,it is OK.