Angular Quick Start
Create an Angular viewer host, open a document, and enable a text annotation with the NPM SDK.
Create an Angular application, then add the viewer to a component that owns the host element.
Keep viewer initialization, host state, and cleanup together in one component.
Install the Viewer package. Use a document URL that the Canvas environment can reach.
Use ngAfterViewInit so the ViewChild host exists. Disable the control until the documented opened event confirms a document is ready, and clean up in ngOnDestroy.
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.
