cancel
Showing results for 
Search instead for 
Did you mean: 

NodeApiService for ADF

robertwoodhead
Champ in-the-making
Champ in-the-making

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 2

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

 Hi,

Which service you are injecting in constructor?

User private nodeServiceNodesApiService.

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
Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.