ali-hm / angular-tree-component

A simple yet powerful tree component for Angular (>=14)
https://angular2-tree.readme.io/docs
MIT License
28 stars 8 forks source link

ERROR TypeError: Cannot read properties of undefined (reading 'treeModel') #4

Closed Muzummil closed 11 months ago

Muzummil commented 11 months ago

<tree-root [nodes]="nestedSpaces" (activate)="onActivate($event.node.data)" (initialized)="setActiveWS()" [options]="options"

OR <Tree [nodes]="nestedSpaces" (activate)="onActivate($event.node.data)" (initialized)="setActiveWS()" [options]="options"

ERROR TypeError: Cannot read properties of undefined (reading 'treeModel') at 963.js:1:138547 at u. (polyfills.js:23:32711) at A.invokeTask (polyfills.js:23:9557) at Object.onInvokeTask (main.js:23:324830) at A.invokeTask (polyfills.js:23:9478) at A.runTask (polyfills.js:23:4566) at A.invokeTask (polyfills.js:23:10695) at A.invoke (polyfills.js:23:10585) at H.s.args. (polyfills.js:23:32409)

[Y] Yes (Assistance will be provided if you need help to submit a pull request) [ ] No