-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UV with Angular 2+ #737
Comments
We're putting together https:/UniversalViewer/uv-examples which contains some example integrations. This is running on version With any integration the important step is setting up the files external to the UV. These need to be available when you deploy your site (usually a Here's an example of the files being copied from the node_modules: I think we can reduce this further as we use more features of webpack. As for the javascript side, you should be able to run: import { init } from "universalviewer";
const uv = init(htmlElement, { manifestUri: ' ... url here ... ' });
uv.on('created', () => {
uv.resize();
}, false); For an Angular integration, you need 2 requirements. 1 is the The other requirement is to get that code snippet above, init and the resize event, to run only once. If you want to control the UV externally, then you could optionally save that |
Added issue to track: UniversalViewer/uv-examples#2 |
Is there any doc / tutorial / explanation how to use UV in Angular 2+ application?
The text was updated successfully, but these errors were encountered: