Framework Samples
The Angular, React (with hooks), and Vue samples show how to use DocumentScanner in a framework app. They live in the samples repository, under frameworks/, beside the demo. Each sample is its own npm project.
Features
- Each sample renders the document scanner inside a component of its framework: Angular (with the Angular CLI), React, or Vue.
- Each sample serves runtime resources from its own origin. The React and Vue samples copy them into
public/engine/invite.config.ts, and the Angular sample copies them throughangular.json. The component pointsresourcesat them.
Quick Start
In the directory of a sample, install the dependencies:
shellnpm installReplace
"YOUR_LICENSE_KEY_HERE"with your license key in the component:src/app/app.component.ts(Angular),src/App.tsx(React), orsrc/App.vue(Vue).Start the development server, and open the
https://address that it prints. The server uses a self-signed certificate, so the browser shows a warning. Accept it to continue. To test on a phone on the same network, open theNetworkaddress:shellnpm run devTo build for production, run:
shellnpm run buildFor the React and Vue samples,
npm run previewserves the production build.
User Guide
Support
If you have a question, contact Dynamsoft Support.