students, I have a question to ask you. Our current project technology stack is ng6+ts,. The problem now is that there is a problem when using the ztree plug-in:
ztree configuration
/**
* ztree
*/
setting: any = {
data:{
simpleData:{
enable:true
},
key:{
name:"des"
}
},
check: {
enable: true
},
view: {
showLine: true,
showIcon: false
},
callback: {
onClick: this.onClick,
onCheck: function (e, treeId, treeNode) {
console.info(treeNode);
}
}
}
private onClick(event, treeId, treeNode, clickFlag){
this.httpcl.get(`http:localhost:8080/shinyview/draft/ColumValueDraft/${treeId}`,{}).subscribe((res) => {console.log(res)})
-sharp-sharp-sharpconstructor configuration-sharp-sharp-sharp
constructor(private appService: AppService,
private http: HttpService,
public httpcl:HttpClient,
private toastService: ToastService) {
}
ztreesettingcallbackonClickthis.onClickztreetreeIdonClickthis:
,
cannot call httpClient
. Has any god encountered similar problems ? The method of new
does not solve