Closed akolybelnikov closed 6 years ago
alfresco-js-api is a framework agnostic project, in order to use it in the Angular please refer to corresponding Angular Services (i.e. AlfrescoApiService)
this is an example how to use it in angular from ADF
constructor(private apiService: AlfrescoApiService) {}
this.apiService.getInstance().webScript.executeWebScript('post', this.scriptPath, this.scriptArgs, this.contextRoot, this.servicePath).then((webScriptdata) => {
you can pass all the supported verb you want. For more information about this method in the alfresco-js-api:
Type of issue: (check with "[x]")
Current behavior: If imported and declared like so:
and then used in a service like so:
an error message from Angular/CLI comes up:
Expected behavior: The service shoud provide GET/POST/PUT/DELETE methods directly accessible from an ng2 component. Alternatively, the WebscriptComponent could provide additional methods besides GET
Steps to reproduce the issue: (see above)
Node version (for build issues):
v8.9.4
New feature request: