NodeApiService for ADF
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 02:02 PM
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
Labels:
- Labels:
-
Alfresco Content Services
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 06:27 AM
Hi,
Which service you are injecting in constructor?
User private nodeService: NodesApiService.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 10:56 AM
Yup thats the way I had it "nodeService: NodesApiService."
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
