NPM Package/docs/getting-started/vue-quick-start
Vue Quick Start
Create a Vue viewer host, open a document, and enable a text annotation with the NPM SDK.
Create a TypeScript Vue application.
bash
1. Create A Vue Project
The single-file component owns the viewer lifecycle and host controls.
text
Folder Structure
Install the Viewer package. Use a document URL that the Canvas environment can reach.
bash
2. Install The Viewer
Create the viewer after the template ref exists. Keep unsubscribe functions and destroy the viewer before Vue removes the component.
vue
3. Initialize And Open A Document
The example enables the verified TEXT annotation action after the document has opened. It clears the host tool state when the documented created event arrives.
Creating an annotation is not a persistence confirmation. When the host must save changes, use the result-backed save flow documented in Annotation API and Save annotations.
