Free Support Forum - groupdocs.com

How to embed the viewer in Angular js application


#1

Hi

Our application uses angular js as the front end framework and Spring framework in the backend.
The examples given by groupdocs are more of a closed nature . Is there a way we can integrate the viewer and the group docs java annotations with the stack I have mentioned above ?

#2
Hello Manu,

Thank you for interest in the GroupDocs. The GroupDocs.Viewer for Java library can be integrated in any Java application. We currently do not have an example of the integration with the Angular JS on the front-end. But you can check the integration with the Spring framework on the back-end - https://github.com/groupdocs/groupdocs-viewer-java-spring-sample. Also this sample can be downloaded from here http://groupdocs.com/Community/files/9/java-libraries/groupdocs_viewer_for_java/entry750.aspx with other samples.

Out of the box the GroupDocs.Viewer contains the HTML5 front-end build on jQuery. You can check and investigate what requests it performs and implement your own front-end or modify this one to support the Angular JS framework.

You can also review the com.groupdocs.viewer.handlers.ViewerHandler API (with and without HTTP support) and use then in case of need for the Angular JS back-end support.