angular-tree-component

Cannot combine @Input decorators with query decorators using Ivy

天大地大妈咪最大 提交于 2020-05-09 05:54:07
问题 I have migrated my angular 7 app to 8.0.0 and i'am now trying the new compiler ivy. The app works perfectly without ivy but when i try to compile with it i have the following error : Cannot combine @Input decorators with query decorators No line number , no file , nothing ... hard to debug anything. I have warning just before that , but i don't know if it's related : WARNING in Entry point 'angular-tree-component' contains deep imports into 'lodash/defaultsDeep', 'lodash/get', 'lodash/omit',

How to implement this angular-tree-component async data code?

不羁岁月 提交于 2020-04-17 20:40:13
问题 I am having trouble implementing this https://angular2-tree.readme.io/docs/async-data-1 . How do I rewrite the following code from OnInit to be async like in the documentation?: this.client.get(API_URL, this.httpOptions).subscribe( (res) => { this.nodes.push(res) }, (error) => { this.handleError(); } ); Please also refer to this question How to store HttpClient GET fetched data into a variable? 回答1: Making a tree as asyn means, you can fetch it's childrens when their parent node expands

How to implement this angular-tree-component async data code?

好久不见. 提交于 2020-04-17 20:38:29
问题 I am having trouble implementing this https://angular2-tree.readme.io/docs/async-data-1 . How do I rewrite the following code from OnInit to be async like in the documentation?: this.client.get(API_URL, this.httpOptions).subscribe( (res) => { this.nodes.push(res) }, (error) => { this.handleError(); } ); Please also refer to this question How to store HttpClient GET fetched data into a variable? 回答1: Making a tree as asyn means, you can fetch it's childrens when their parent node expands