NodeApiService for ADF

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

NodeApiService for ADF

Trying to update a node with

this.nodeService.updateNode(this.nodeId, {
properties: node
});
 
and fails with:
 
ERROR TypeError: Cannot read property 'updateNode' of undefined
 
Any elp would be appreciated
2 Replies
Senior Member II

Re: NodeApiService for ADF

 Hi,

Which service you are injecting in constructor?

User private nodeServiceNodesApiService.

Thanks & Regards,
Sanjay
Member II

Re: NodeApiService for ADF

Yup thats the way I had it "nodeServiceNodesApiService." 

I've since renamed to to 

private nodesApiService: NodesApiService
 
and 
 
this.nodesApiService.updateNode(this.nodeId, {
properties: node
});
 
Same error:  TypeError: Cannot read property 'updateNode' of undefined